Class MgBinarySerializer
A utility for deserializing data in the internal MapGuide format.
Inheritance
Inherited Members
Namespace: OSGeo.MapGuide.MaestroAPI.Serialization
Assembly: OSGeo.MapGuide.MaestroAPI.dll
Syntax
public class MgBinarySerializer
Constructors
| Improve this Doc View SourceMgBinarySerializer(Stream, Version)
Initializes a new instance of the MgBinarySerializer class.
Declaration
public MgBinarySerializer(Stream stream, Version siteversion)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
System.Version | siteversion | The siteversion. |
Fields
| Improve this Doc View SourceDoubleLen
Declaration
public static int DoubleLen
Field Value
Type | Description |
---|---|
System.Int32 |
FloatLen
Declaration
public static int FloatLen
Field Value
Type | Description |
---|---|
System.Int32 |
UInt16Len
Declaration
public static int UInt16Len
Field Value
Type | Description |
---|---|
System.Int32 |
UInt32Len
Declaration
public static int UInt32Len
Field Value
Type | Description |
---|---|
System.Int32 |
UInt64Len
Declaration
public static int UInt64Len
Field Value
Type | Description |
---|---|
System.Int32 |
UInt8Len
Declaration
public static int UInt8Len
Field Value
Type | Description |
---|---|
System.Int32 |
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 SourceWrite(IBinarySerializable)
Writes the specified value.
Declaration
public void Write(IBinarySerializable value)
Parameters
Type | Name | Description |
---|---|---|
IBinarySerializable | value | The value. |
Write(Boolean)
Writes the specified value.
Declaration
public void Write(bool value)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | value | if set to |
Write(Byte)
Writes the specified value.
Declaration
public void Write(byte value)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | value | The value. |
Write(Double)
Writes the specified value.
Declaration
public void Write(double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The value. |
Write(Int16)
Writes the specified value.
Declaration
public void Write(short value)
Parameters
Type | Name | Description |
---|---|---|
System.Int16 | value | The value. |
Write(Int32)
Writes the specified value.
Declaration
public void Write(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
Write(Int64)
Writes the specified value.
Declaration
public void Write(long value)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | The value. |
Write(Stream)
Writes the specified stream.
Declaration
public void Write(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream. |
Write(String)
Writes the specified value.
Declaration
public void Write(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
WriteClassId(Int32)
Writes the class id.
Declaration
public void WriteClassId(int value)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | The value. |
WriteCoordinates(Double[], Int32)
Writes the coordinates.
Declaration
public void WriteCoordinates(double[] coordinates, int dimensions)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | coordinates | The coordinates. |
System.Int32 | dimensions | The dimensions. |
WriteRaw(Byte[])
Writes the raw.
Declaration
public void WriteRaw(byte[] buf)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | buf | The buf. |
WriteResourceIdentifier(String)
Writes the resource identifier.
Declaration
public void WriteResourceIdentifier(string resourceID)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceID | The resource ID. |
WriteStreamEnd()
Writes the stream end.
Declaration
public void WriteStreamEnd()
WriteStringInternal(String)
Writes the string internal.
Declaration
public void WriteStringInternal(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |