Search Results for

    Show / Hide Table of Contents

    Class StreamExtensions

    Inheritance
    object
    StreamExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Extensions
    Assembly: Mapsui.dll
    Syntax
    public static class StreamExtensions

    Methods

    | Edit this page View Source

    IsSvg(Stream)

    Detects if stream is svg stream

    Declaration
    public static bool IsSvg(this Stream stream)
    Parameters
    Type Name Description
    Stream stream

    stream

    Returns
    Type Description
    bool

    true if is svg stream

    | Edit this page View Source

    IsXml(Stream)

    Is Xml

    Declaration
    public static bool IsXml(this Stream stream)
    Parameters
    Type Name Description
    Stream stream

    stream

    Returns
    Type Description
    bool

    true if is xml

    | Edit this page View Source

    ReadOneSearch(Stream, byte[])

    https://stackoverflow.com/questions/1471975/best-way-to-find-position-in-the-stream-where-given-byte-sequence-starts

    Declaration
    public static long ReadOneSearch(this Stream haystack, byte[] needle)
    Parameters
    Type Name Description
    Stream haystack

    stream to search

    byte[] needle

    pattern to find

    Returns
    Type Description
    long

    position

    | Edit this page View Source

    ReadOneSearch(Stream, string)

    Declaration
    public static long ReadOneSearch(this Stream haystack, string needle)
    Parameters
    Type Name Description
    Stream haystack
    string needle
    Returns
    Type Description
    long
    | Edit this page View Source

    ToBytes(Stream)

    Declaration
    public static byte[] ToBytes(this Stream input)
    Parameters
    Type Name Description
    Stream input
    Returns
    Type Description
    byte[]
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX