BuildMaster SDK Reference
Version:

SlimBinaryFormatter Class

Contains methods for performing compact low-level binary serialization.

Inheritance Hierarchy

  • object
    • Inedo.Serialization.SlimBinaryFormatter

Syntax

public class SlimBinaryFormatter

Methods

Name Description
Deserialize(System.IO.Stream stream)

Deserializes an object from the specified stream.

DeserializeFromByteArray(byte[] data)

Deserializes an object from the specified byte array.

ReadLength(byte[] data, System.Int32& offset)
ReadLength(System.IO.Stream stream)

Reads a variable-length 32-bit integer 7 bits at a time.

ReadLength(System.IO.BinaryReader reader)

Reads a variable-length 32-bit integer 7 bits at a time.

Serialize(object obj, System.IO.Stream stream)

Serializes the specified object to the specified stream.

SerializeToByteArray(object obj)

Serializes the specified object and returns it as a byte array.

WriteLength(byte[] data, System.Int32& offset, int length)
WriteLength(System.IO.Stream stream, int length)

Writes a variable-length 32-bit integer 7 bits at a time that is intended to represent a length.

WriteLength(System.IO.BinaryWriter writer, int length)

Writes a variable-length 32-bit integer 7 bits at a time that is intended to represent a length.