Search Results for

    Show / Hide Table of Contents

    Class ByteExtensions

    Inheritance
    object
    ByteExtensions
    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 ByteExtensions

    Methods

    | Edit this page View Source

    IsSkp(byte[])

    true if is Skp (Skia Serialized SkPicture)

    Declaration
    public static bool IsSkp(this byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    buffer

    Returns
    Type Description
    bool

    true if is xml

    | Edit this page View Source

    IsSvg(byte[])

    Detects if a byte array represents an svg.

    Declaration
    public static bool IsSvg(this byte[] bytes)
    Parameters
    Type Name Description
    byte[] bytes

    The image data as byte array.

    Returns
    Type Description
    bool

    True if is and svg.

    | Edit this page View Source

    IsXml(byte[])

    true if is Xml

    Declaration
    public static bool IsXml(this byte[] buffer)
    Parameters
    Type Name Description
    byte[] buffer

    buffer

    Returns
    Type Description
    bool

    true if is xml

    | Edit this page View Source

    ReadOneSearch(byte[], 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 byte[] haystack, byte[] needle)
    Parameters
    Type Name Description
    byte[] haystack

    stream to search

    byte[] needle

    pattern to find

    Returns
    Type Description
    long

    position

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX