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 SourceMgBinaryDeserializer(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 SourceSiteVersion
Gets the site version.
Declaration
public Version SiteVersion { get; }
Property Value
Type | Description |
---|---|
System.Version | The site version. |
Methods
| Improve this Doc View SourceReadBool()
Reads the bool.
Declaration
public bool ReadBool()
Returns
Type | Description |
---|---|
System.Boolean |
ReadByte()
Reads the byte.
Declaration
public byte ReadByte()
Returns
Type | Description |
---|---|
System.Byte |
ReadClassId()
Reads the class id.
Declaration
public int ReadClassId()
Returns
Type | Description |
---|---|
System.Int32 |
ReadCoordinates()
Reads the coordinates.
Declaration
public double[] ReadCoordinates()
Returns
Type | Description |
---|---|
System.Double[] |
ReadDouble()
Reads the double.
Declaration
public double ReadDouble()
Returns
Type | Description |
---|---|
System.Double |
ReadInt16()
Reads the int16.
Declaration
public short ReadInt16()
Returns
Type | Description |
---|---|
System.Int16 |
ReadInt32()
Reads the int32.
Declaration
public int ReadInt32()
Returns
Type | Description |
---|---|
System.Int32 |
ReadInt64()
Reads the int64.
Declaration
public long ReadInt64()
Returns
Type | Description |
---|---|
System.Int64 |
ReadInternalString()
Reads the internal string.
Declaration
public string ReadInternalString()
Returns
Type | Description |
---|---|
System.String |
ReadObject()
Reads the object.
Declaration
public IBinarySerializable ReadObject()
Returns
Type | Description |
---|---|
IBinarySerializable |
ReadResourceIdentifier()
Reads the resource identifier.
Declaration
public string ReadResourceIdentifier()
Returns
Type | Description |
---|---|
System.String |
ReadSingle()
Reads the single.
Declaration
public float ReadSingle()
Returns
Type | Description |
---|---|
System.Single |
ReadStream()
Reads the stream.
Declaration
public Stream ReadStream()
Returns
Type | Description |
---|---|
System.IO.Stream |
ReadStreamEnd()
Reads the stream end.
Declaration
public void ReadStreamEnd()
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 |
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[] |
ReadString()
Reads the string.
Declaration
public string ReadString()
Returns
Type | Description |
---|---|
System.String |