This is experimental documentation.
Operates as a data buffer for network and file output.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class DataBuffer
Public Class DataBuffer
public ref class DataBuffer
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
DataBuffer()()()() |
Creates a new DataBuffer.
| |
Count |
Gets the length of data in the buffer.
| |
Equals(Object) | (Inherited from Object.) | |
Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetData()()()() |
Gets the data currently contained in the buffer.
| |
GetHashCode()()()() | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
Insert(Boolean) |
Inserts the specified Boolean value into the buffer.
| |
Insert(Byte) |
Inserts the specified value into the buffer.
| |
Insert(SByte) |
Inserts the specified value into the buffer.
| |
Insert(array<Byte>[]()[][]) |
Inserts the specified byte array into the buffer.
| |
Insert(array<SByte>[]()[][]) |
Inserts the specified byte array into the buffer.
| |
Insert(Int16) |
Inserts the specified value into the buffer.
| |
Insert(UInt16) |
Inserts the specified value into the buffer.
| |
Insert(array<Int16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
| |
Insert(array<UInt16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
| |
Insert(Int32) |
Inserts the specified value into the buffer.
| |
Insert(UInt32) |
Inserts the specified value into the buffer.
| |
Insert(array<Int32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
| |
Insert(array<UInt32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
| |
Insert(Int64) |
Inserts the specified value into the buffer.
| |
Insert(UInt64) |
Inserts the specified value into the buffer.
| |
Insert(array<Int64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
| |
Insert(array<UInt64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
| |
InsertBoolean(Boolean) |
Inserts the specified Boolean value into the buffer.
| |
InsertByte(Byte) |
Inserts the specified value into the buffer.
| |
InsertByteArray(array<Byte>[]()[][]) |
Inserts the specified byte array into the buffer.
| |
InsertCString(String) |
Inserts the specified value into the buffer as a C-style null-terminated
ASCII string.
| |
InsertCString(String, Encoding) |
Inserts the specified value into the buffer as a C-style null-terminated
string using the specified encoding.
| |
InsertDwordString(String) |
Inserts the specified value into the buffer as a 32-bit-style string using
null bytes as the default padding.
| |
InsertDwordString(String, Byte) |
Inserts the specified value into the buffer as a 32-bit-style string using
the specified byte as padding.
| |
InsertInt16(Int16) |
Inserts the specified value into the buffer.
| |
InsertInt16Array(array<Int16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
| |
InsertInt32(Int32) |
Inserts the specified value into the buffer.
| |
InsertInt32Array(array<Int32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
| |
InsertInt64(Int64) |
Inserts the specified value into the buffer.
| |
InsertInt64Array(array<Int64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
| |
InsertPascalString(String) |
Inserts the specified value into the buffer as a pascal-style ASCII string.
| |
InsertPascalString(String, Encoding) |
Inserts the specified value into the buffer as a pascal-style string using
the specified encoding.
| |
InsertSByte(SByte) |
Inserts the specified value into the buffer.
| |
InsertSByteArray(array<SByte>[]()[][]) |
Inserts the specified byte array into the buffer.
| |
InsertUInt16(UInt16) |
Inserts the specified value into the buffer.
| |
InsertUInt16Array(array<UInt16>[]()[][]) |
Inserts the specified 16-bit data array into the buffer.
| |
InsertUInt32(UInt32) |
Inserts the specified value into the buffer.
| |
InsertUInt32Array(array<UInt32>[]()[][]) |
Inserts the specified 32-bit data array into the buffer.
| |
InsertUInt64(UInt64) |
Inserts the specified value into the buffer.
| |
InsertUInt64Array(array<UInt64>[]()[][]) |
Inserts the specified 64-bit data array into the buffer.
| |
InsertWidePascalString(String) |
Inserts the specified value into the buffer as a wide-pascal-style ASCII
string.
| |
InsertWidePascalString(String, Encoding) |
Inserts the specified value into the buffer as a wide-pascal-style string
using the specified encoding.
| |
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString()()()() |
Gets a hex representation of this buffer.
(Overrides Object.ToString()()()().) | |
WriteToOutputStream(Stream) |
Writes the data currently contained in the buffer to the specified stream.
|
Remarks
This class does not read data in any manner; for reading or receiving data, use the DataReader or derived classes.
This class always uses little-endian byte ordering.
This class no longer supports operator overloading in C# via the binary addition (+) operator.
Inheritance Hierarchy
Object | ||
DataBuffer | ||
BncsPacket | ||
BnlsPacket | ||
AqsPacket |
Assembly: Asgard5Library (Module: Asgard5Library)