Click or drag to resize

DataBuffer Class

Binary data buffer implementation
Inheritance Hierarchy

Namespace:  FM.IceLink
Assembly:  FM.IceLink (in FM.IceLink.dll) Version: 3.2.2.607 (3.2.2.607)

The DataBuffer type exposes the following members.

Properties
  NameDescription
Public propertyData
Gets the data.
Public propertyStatic memberEmpty
Gets an empty data buffer.
Public propertyIndex
Gets or sets the index.
Protected propertyInnerData
Gets or sets backing data buffer.
Public propertyIsPooled
Gets whether this DataBuffer is from a pool.
Public propertyIsSubset
Gets whether this DataBuffer is a subset.
Public propertyLength
Gets or sets the length.
Public propertyLittleEndian
Gets or sets whether Data is little-endian.
Top
Methods
  NameDescription
Public methodStatic memberAllocate(Int32)
Allocates a new data buffer with a given size (in bytes) in big-endian format.
Public methodStatic memberAllocate(Int32, Boolean)
Allocates a new data buffer with a given size (in bytes).
Public methodStatic memberAllocate(Int32, Boolean, Boolean)
Allocates a new data buffer with a given size (in bytes).
Public methodAnd
Performs a bitwise "and" operation on a value.
Public methodAppend(DataBuffer)
Appends a buffer.
Public methodAppend(DataBuffer)
Appends some buffers.
Public methodStatic memberAreEqual
Tests if the two buffers have equal contents.
Public methodClone
Clones this instance.
Public methodClone(Boolean)
Clones this instance.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFree
Decrements the retain count by one and returns the Buffer to the pool if zero.
Public methodStatic memberFromJson
Deserializes an instance from JSON.
Public methodStatic memberFromJsonArray
Deserializes an array of instances from JSON.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodKeep
Increment the retain count by one.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOr
Performs a bitwise "or" operation on a value.
Public methodPrepend(DataBuffer)
Prepends a buffer.
Public methodPrepend(DataBuffer)
Prepends some buffers.
Public methodRead1
Reads a 1-bit value.
Public methodRead12
Reads a 12-bit value.
Public methodRead13
Reads a 13-bit value.
Public methodRead13Signed
Reads a 13-bit signed value.
Public methodRead15
Reads a 15-bit value.
Public methodRead16(Int32)
Reads a 16-bit value.
Public methodRead16(Int32, Int32)
Reads a 16-bit value.
Public methodRead16Signed(Int32)
Reads a 16-bit signed value.
Public methodRead16Signed(Int32, Int32)
Reads a 16-bit signed value.
Public methodRead18
Reads an 18-bit value.
Public methodRead2
Reads a 2-bit value.
Public methodRead24(Int32)
Reads a 24-bit value.
Public methodRead24(Int32, Int32)
Reads a 24-bit value.
Public methodRead24Signed(Int32)
Reads a 24-bit signed value.
Public methodRead24Signed(Int32, Int32)
Reads a 24-bit signed value.
Public methodRead2Signed
Reads a 2-bit signed value.
Public methodRead3
Reads a 3-bit value.
Public methodRead32(Int32)
Reads a 32-bit value.
Public methodRead32(Int32, Int32)
Reads a 32-bit value.
Public methodRead32Signed(Int32)
Reads a 32-bit signed value.
Public methodRead32Signed(Int32, Int32)
Reads a 32-bit signed value.
Public methodRead3Signed
Reads a 3-bit signed value.
Public methodRead4
Reads a 4-bit value.
Public methodRead40(Int32)
Reads a 40-bit value.
Public methodRead40(Int32, Int32)
Reads a 40-bit value.
Public methodRead40Signed(Int32)
Reads a 40-bit signed value.
Public methodRead40Signed(Int32, Int32)
Reads a 40-bit signed value.
Public methodRead48(Int32)
Reads a 48-bit value.
Public methodRead48(Int32, Int32)
Reads a 48-bit value.
Public methodRead48Signed(Int32)
Reads a 48-bit signed value.
Public methodRead48Signed(Int32, Int32)
Reads a 48-bit signed value.
Public methodRead4Signed
Reads a 4-bit signed value.
Public methodRead5
Reads a 5-bit value.
Public methodRead56(Int32)
Reads a 56-bit value.
Public methodRead56(Int32, Int32)
Reads a 56-bit value.
Public methodRead56Signed(Int32)
Reads a 56-bit signed value.
Public methodRead56Signed(Int32, Int32)
Reads a 56-bit signed value.
Public methodRead5Signed
Reads a 5-bit signed value.
Public methodRead6
Reads a 6-bit value.
Public methodRead64(Int32)
Reads a 64-bit value.
Public methodRead64(Int32, Int32)
Reads a 64-bit value.
Public methodRead64Signed(Int32)
Reads a 64-bit signed value.
Public methodRead64Signed(Int32, Int32)
Reads a 64-bit signed value.
Public methodRead6Signed
Reads a 6-bit signed value.
Public methodRead7
Reads a 7-bit value.
Public methodRead7Signed
Reads a 7-bit signed value.
Public methodRead8(Int32)
Reads an 8-bit value.
Public methodRead8(Int32, Int32)
Reads an 8-bit value.
Public methodRead8Signed(Int32)
Reads an 8-bit signed value.
Public methodRead8Signed(Int32, Int32)
Reads an 8-bit signed value.
Public methodReadUtf8String(Int32)
Read a UTF-8 string.
Public methodReadUtf8String(Int32, Int32)
Reads a UTF-8 string.
Public methodResize(Int32)
Resizes this buffer to a new length with new data being inserted at the end.
Public methodResize(Int32, Int32)
Resizes this buffer to a new length with new data being inserted at a given offset.
Public methodResize(Int32, Int32, Boolean)
Resizes this buffer to a new length with new data being inserted at a given offset.
Public methodSequenceEquals
Compares a data buffer for equality.
Public methodSequenceEqualsConstantTime
Compares a data buffer for equality in constant time.
Public methodSet(Byte)
Sets the data buffer to the specified value.
Public methodSet(Byte, Int32)
Sets a subset of the data buffer to the specified value.
Public methodSet(Byte, Int32, Int32)
Sets a subset of the data buffer to the specified value.
Public methodSubset(Int32)
Gets a subset of this instance.
Public methodSubset(Int32, Int32)
Gets a subset of this instance.
Public methodToArray
Converts this instance to an array of bytes.
Public methodToHexString
Converts this instance to a hexadecimal string.
Public methodToJson
Serializes this instance to JSON.
Public methodStatic memberToJson(DataBuffer)
Serializes an instance to JSON.
Public methodStatic memberToJsonArray
Serializes an array of instances to JSON.
Public methodToString (Inherited from Object.)
Public methodTryRead1
Tries to read a 1-bit value.
Public methodTryRead13
Tries to read a 13-bit value;
Public methodTryRead16
Tries to read a 16-bit value.
Public methodTryRead2
Tries to read a 2-bit value.
Public methodTryRead24
Tries to read a 24-bit value.
Public methodTryRead3
Tries to read a 3-bit value.
Public methodTryRead32
Tries to read a 32-bit value.
Public methodTryRead4
Tries to read a 4-bit value.
Public methodTryRead40
Tries to read a 40-bit value.
Public methodTryRead48
Tries to read a 48-bit value.
Public methodTryRead5
Tries to read a 5-bit value.
Public methodTryRead56
Tries to read a 56-bit value.
Public methodTryRead6
Tries to read a 6-bit value.
Public methodTryRead64
Tries to read a 64-bit value.
Public methodTryRead7
Tries to read a 7-bit value.
Public methodTryRead8
Tries to read an 8-bit value.
Public methodStatic memberWrap(Byte)
Produces a new data buffer containing supplied data in big-endian format.
Public methodStatic memberWrap(Byte, Boolean)
Produces a new data buffer containing supplied data.
Public methodStatic memberWrap(Byte, Int32)
Produces a new data buffer containing supplied data in big-endian format.
Public methodStatic memberWrap(Byte, Int32, Boolean)
Produces a new data buffer containing supplied data.
Public methodStatic memberWrap(Byte, Int32, Int32)
Produces a new data buffer containing supplied data in big-endian format.
Public methodStatic memberWrap(Byte, Int32, Int32, Boolean)
Produces a new data buffer containing supplied data.
Public methodWrite(DataBuffer)
Writes a data buffer to this instance.
Public methodWrite(DataBuffer, Int32)
Writes a data buffer to this instance.
Public methodWrite(DataBuffer, Int32, Int32)
Writes a data buffer to this instance.
Public methodWrite1
Writes a 1-bit value.
Public methodWrite13
Writes a 13-bit value.
Public methodWrite16(Int32, Int32)
Writes a 16-bit value.
Public methodWrite16(Int32, Int32, Int32)
Writes a 16-bit value.
Public methodWrite18
Writes an 18-bit value.
Public methodWrite2
Writes a 2-bit value.
Public methodWrite24(Int32, Int32)
Writes a 24-bit value.
Public methodWrite24(Int32, Int32, Int32)
Writes a 24-bit value.
Public methodWrite3
Writes a 3-bit value.
Public methodWrite32(Int64, Int32)
Writes a 32-bit value.
Public methodWrite32(Int64, Int32, Int32)
Writes a 32-bit value.
Public methodWrite4
Writes a 4-bit value.
Public methodWrite40(Int64, Int32)
Writes a 40-bit value.
Public methodWrite40(Int64, Int32, Int32)
Writes a 40-bit value.
Public methodWrite48(Int64, Int32)
Writes a 48-bit value.
Public methodWrite48(Int64, Int32, Int32)
Writes a 48-bit value.
Public methodWrite5
Writes a 5-bit value.
Public methodWrite56(Int64, Int32)
Writes a 56-bit value.
Public methodWrite56(Int64, Int32, Int32)
Writes a 56-bit value.
Public methodWrite6
Writes a 6-bit value.
Public methodWrite64(Int64, Int32)
Writes a 64-bit value.
Public methodWrite64(Int64, Int32, Int32)
Writes a 64-bit value.
Public methodWrite7
Writes a 7-bit value.
Public methodWrite8(Int32, Int32)
Writes an 8-bit value.
Public methodWrite8(Int32, Int32, Int32)
Writes an 8-bit value.
Public methodWriteBytes(Byte)
Writes a byte array to this instance.
Public methodWriteBytes(Byte, Int32)
Writes a byte array to this instance.
Public methodWriteBytes(Byte, Int32, Int32)
Writes a byte array to this instance.
Public methodWriteBytes(Byte, Int32, Int32, Int32)
Writes a byte array to this instance.
Public methodWriteBytes(Byte, Int32, Int32, Int32, Int32)
Writes a byte array to this instance.
Public methodXor
Performs a bitwise "xor" operation on a value.
Top
See Also