Search Results for

    Show / Hide Table of Contents

    Class MgBinaryDeserializer

    A utility for serializing objects to the internal MapGuide Format

    Inheritance
    System.Object
    MgBinaryDeserializer
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.MaestroAPI.Serialization
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public class MgBinaryDeserializer

    Constructors

    | Improve this Doc View Source

    MgBinaryDeserializer(Stream, Version)

    Initializes a new instance of the MgBinaryDeserializer class.

    Declaration
    public MgBinaryDeserializer(Stream stream, Version siteversion)
    Parameters
    Type Name Description
    System.IO.Stream stream

    The stream.

    System.Version siteversion

    The siteversion.

    Properties

    | Improve this Doc View Source

    SiteVersion

    Gets the site version.

    Declaration
    public Version SiteVersion { get; }
    Property Value
    Type Description
    System.Version

    The site version.

    Methods

    | Improve this Doc View Source

    ReadBool()

    Reads the bool.

    Declaration
    public bool ReadBool()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ReadByte()

    Reads the byte.

    Declaration
    public byte ReadByte()
    Returns
    Type Description
    System.Byte
    | Improve this Doc View Source

    ReadClassId()

    Reads the class id.

    Declaration
    public int ReadClassId()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ReadCoordinates()

    Reads the coordinates.

    Declaration
    public double[] ReadCoordinates()
    Returns
    Type Description
    System.Double[]
    | Improve this Doc View Source

    ReadDouble()

    Reads the double.

    Declaration
    public double ReadDouble()
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    ReadInt16()

    Reads the int16.

    Declaration
    public short ReadInt16()
    Returns
    Type Description
    System.Int16
    | Improve this Doc View Source

    ReadInt32()

    Reads the int32.

    Declaration
    public int ReadInt32()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ReadInt64()

    Reads the int64.

    Declaration
    public long ReadInt64()
    Returns
    Type Description
    System.Int64
    | Improve this Doc View Source

    ReadInternalString()

    Reads the internal string.

    Declaration
    public string ReadInternalString()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ReadObject()

    Reads the object.

    Declaration
    public IBinarySerializable ReadObject()
    Returns
    Type Description
    IBinarySerializable
    | Improve this Doc View Source

    ReadResourceIdentifier()

    Reads the resource identifier.

    Declaration
    public string ReadResourceIdentifier()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ReadSingle()

    Reads the single.

    Declaration
    public float ReadSingle()
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    ReadStream()

    Reads the stream.

    Declaration
    public Stream ReadStream()
    Returns
    Type Description
    System.IO.Stream
    | Improve this Doc View Source

    ReadStreamEnd()

    Reads the stream end.

    Declaration
    public void ReadStreamEnd()
    | Improve this Doc View Source

    ReadStreamRepeat(Byte[], Int32, Int32)

    Internal helper that will read from a potentially fragmented stream

    Declaration
    public void ReadStreamRepeat(byte[] buf, int offset, int len)
    Parameters
    Type Name Description
    System.Byte[] buf

    The buf.

    System.Int32 offset

    The offset.

    System.Int32 len

    The number of bytes to read

    | Improve this Doc View Source

    ReadStreamRepeat(Int32)

    Reads the stream repeat.

    Declaration
    public byte[] ReadStreamRepeat(int len)
    Parameters
    Type Name Description
    System.Int32 len

    The len.

    Returns
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    ReadString()

    Reads the string.

    Declaration
    public string ReadString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng