BufferSegment Methods |
The BufferSegment type exposes the following members.
| Name | Description | |
|---|---|---|
| Clone |
Return a copy of the data. The underlying buffer is not shared.
| |
| Equals(BufferSegment) |
Returns true if the two buffers have the same content.
| |
| Equals(Byte) |
Returns true if the two buffers have the same content.
| |
| Equals(Object) |
Returns true if the two buffers have the same content.
(Overrides ValueTypeEquals(Object).) | |
| Equals(Byte, Int32, Int32) |
Returns true if length portion of the two buffers have the same content.
| |
| Equals(Int32, Byte, Int32, Int32) |
Returns true if length portion of the two buffers have the same content.
| |
| Equals(Byte, Int32, Byte, Int32, Int32) |
Returns true if length portion of the two buffers have the same content.
| |
| GetHashCode |
Serves has a hash function for the content of the buffer.
(Overrides ValueTypeGetHashCode.) | |
| ReadBit |
Reads a bit at offset in the buffer.
| |
| ReadBoolean |
Reads a boolean at offset in the buffer.
| |
| ReadByte |
Reads a byte at offset in the buffer.
| |
| ReadBytes(Int32, ArraySegmentByte) |
Reads a number of bytes at offset in the buffer.
| |
| ReadBytes(Int32, Int32) |
Reads a number of bytes at offset in the buffer.
| |
| ReadBytes(Int32, IDataWriter, Int32) |
Reads a number of bytes at offset in the buffer.
| |
| ReadBytes(Int32, Byte, Int32, Int32) |
Reads a number of bytes at offset in the buffer.
| |
| ReadChar |
Reads a character at offset in the buffer.
| |
| ReadDouble |
Reads a 64bit double floating point number at offset in the buffer.
| |
| ReadDoubleBE |
Reads a 64bit double floating point number at offset in the buffer.
| |
| ReadDoubleLE |
Reads a 64bit double floating point number at offset in the buffer.
| |
| ReadInt16 |
Reads a 16bit signed integer at offset in the buffer.
| |
| ReadInt16BE |
Reads a 16bit signed integer at offset in the buffer.
| |
| ReadInt16LE |
Reads a 16bit signed integer at offset in the buffer.
| |
| ReadInt32 |
Reads a 32bit signed integer at offset in the buffer.
| |
| ReadInt32BE |
Reads a 32bit signed integer at offset in the buffer.
| |
| ReadInt32LE |
Reads a 32bit signed integer at offset in the buffer.
| |
| ReadInt64 |
Reads a 64bit signed integer at offset in the buffer.
| |
| ReadInt64BE |
Reads a 64bit signed integer at offset in the buffer.
| |
| ReadInt64LE |
Reads a 64bit signed integer at offset in the buffer.
| |
| ReadSByte |
Reads a signed byte at offset in the buffer.
| |
| ReadSingle |
Reads a 32bit single floating point number at offset in the buffer.
| |
| ReadSingleBE |
Reads a 32bit single floating point number at offset in the buffer.
| |
| ReadSingleLE |
Reads a 32bit single floating point number at offset in the buffer.
| |
| ReadString |
Reads a string at offset in the buffer.
| |
| ReadUInt16 |
Reads a 16bit unsigned integer at offset in the buffer.
| |
| ReadUInt16BE |
Reads a 16bit unsigned integer at offset in the buffer.
| |
| ReadUInt16LE |
Reads a 16bit unsigned integer at offset in the buffer.
| |
| ReadUInt32 |
Reads a 32bit unsigned integer at offset in the buffer.
| |
| ReadUInt32BE |
Reads a 32bit unsigned integer at offset in the buffer.
| |
| ReadUInt32LE |
Reads a 32bit unsigned integer at offset in the buffer.
| |
| ReadUInt64 |
Reads a 64bit unsigned integer at offset in the buffer.
| |
| ReadUInt64BE |
Reads a 64bit unsigned integer at offset in the buffer.
| |
| ReadUInt64LE |
Reads a 64bit unsigned integer at offset in the buffer.
| |
| ToByteArray |
Returns a byte array containing the data referenced by this BufferSegment.
The byte array returned may or may not reference the same memory byte array as this BufferSegment.
| |
| ToString |
Returns a description of the buffer.
(Overrides ValueTypeToString.) | |
| WriteBit |
Writes a bit at offset in the buffer.
| |
| WriteBoolean |
Writes a boolean at offset in the buffer.
| |
| WriteByte |
Writes a byte at offset in the buffer.
| |
| WriteBytes(Int32, ArraySegmentByte) |
Writes a bytes at offset in the data.
| |
| WriteBytes(Int32, Byte) |
Writes a bytes at offset in the data.
| |
| WriteBytes(Int32, ArraySegmentByte, Int32) |
Writes a bytes at offset in the data.
| |
| WriteBytes(Int32, Byte, Int32, Int32) |
Writes a bytes at offset in the data.
| |
| WriteChar |
Writes an 8bit character at offset in the buffer.
| |
| WriteDouble |
Writes a double floating point number at offset in the buffer.
| |
| WriteDoubleBE |
Writes a double floating point number at offset in the buffer.
| |
| WriteDoubleLE |
Writes a double floating point number at offset in the buffer.
| |
| WriteInt16 |
Writes a 16bit signed integer at offset in the buffer.
| |
| WriteInt16BE |
Writes a 16bit signed integer at offset in the buffer.
| |
| WriteInt16LE |
Writes a 16bit signed integer at offset in the buffer.
| |
| WriteInt32 |
Writes a 32bit signed integer at offset in the buffer.
| |
| WriteInt32BE |
Writes a 32bit signed integer at offset in the buffer.
| |
| WriteInt32LE |
Writes a 32bit signed integer at offset in the buffer.
| |
| WriteInt64 |
Writes a 64bit signed integer at offset in the buffer.
| |
| WriteInt64BE |
Writes a 64bit signed integer at offset in the buffer.
| |
| WriteInt64LE |
Writes a 64bit signed integer at offset in the buffer.
| |
| WriteSByte |
Writes a signed byte at offset in the buffer.
| |
| WriteSingle |
Writes a single floating point number at offset in the buffer.
| |
| WriteSingleBE |
Writes a single floating point number at offset in the buffer.
| |
| WriteSingleLE |
Writes a single floating point number at offset in the buffer.
| |
| WriteString |
Writes a string at offset in the buffer.
| |
| WriteUInt16 |
Writes a 16bit unsigned integer at offset in the buffer.
| |
| WriteUInt16BE |
Writes a 16bit unsigned integer at offset in the buffer.
| |
| WriteUInt16LE |
Writes a 16bit unsigned integer at offset in the buffer.
| |
| WriteUInt32 |
Writes a 32bit unsigned integer at offset in the buffer.
| |
| WriteUInt32BE |
Writes a 32bit unsigned integer at offset in the buffer.
| |
| WriteUInt32LE |
Writes a 32bit unsigned integer at offset in the buffer.
| |
| WriteUInt64 |
Writes a 64bit unsigned integer at offset in the buffer.
| |
| WriteUInt64BE |
Writes a 64bit unsigned integer at offset in the buffer.
| |
| WriteUInt64LE |
Writes a 64bit unsigned integer at offset in the buffer.
|