Property | Type | Description | |
---|---|---|---|
ByteOrder | ByteOrder |
Method | Description | |
---|---|---|
Dispose ( ) : void | ||
FromBytes ( byte bytes ) : |
Creates a new IOBuffer instance from a byte array.
|
|
FromBytes ( byte bytes, ByteOrder order ) : |
Creates a new IOBuffer instance from a byte array, using a specified byte order.
|
|
FromStream ( Stream stream ) : |
Creates a new IOBuffer instance from a stream.
|
|
FromStream ( Stream stream, ByteOrder order ) : |
Creates a new IOBuffer instance from a stream, using a specified byte order.
|
|
IoBuffer ( Stream stream ) : System |
Creates a new IOBuffer instance from a stream.
|
|
Mark ( ) : void | ||
ReadByte ( ) : byte |
Reads a byte from the current stream.
|
|
ReadBytes ( int num ) : byte[] |
Reads a number of bytes from the current stream.
|
|
ReadBytes ( uint num ) : byte[] |
Reads a number of bytes from the current stream.
|
|
ReadCString ( int num ) : string |
Reads a number of ASCII characters from the current stream.
|
|
ReadCString ( int num, bool trimNull ) : string |
Reads a number of ASCII characters from the current stream.
|
|
ReadInt16 ( ) : short |
Reads a 16bit integer from the current stream.
|
|
ReadInt32 ( ) : int |
Reads a 32bit integer from the current stream.
|
|
ReadLongPascalString ( ) : string |
Reads a pascal string from the current stream, which is prefixed by a 16bit short.
|
|
ReadNullTerminatedString ( ) : string |
Reads a C string from the current stream.
|
|
ReadNullTerminatedUTF8 ( ) : string | ||
ReadPascalString ( ) : string |
Reads a pascal string from the current stream, prefixed by a byte.
|
|
ReadUInt16 ( ) : ushort |
Reads an unsigned 16bit integer from the current stream.
|
|
ReadUInt32 ( ) : uint |
Reads an unsigned 32bit integer from the current stream.
|
|
ReadVarLen ( ) : uint |
Reads a variable length unsigned integer from the current stream.
|
|
ReadVariableLengthPascalString ( ) : string |
Reads a pascal string from the current stream.
|
|
Seek ( SeekOrigin origin, long offset ) : void |
Seeks in the current stream.
|
|
SeekFromMark ( long numBytes ) : void |
Seeks in the current stream from the current mark plus the number of bytes.
|
|
Skip ( long numBytes ) : void |
Skips a number of bytes in the current stream, starting from the current position.
|
Method | Description | |
---|---|---|
ReadFloat ( ) : float |
public static FromBytes ( byte bytes ) : |
||
bytes | byte | The byte array to use. |
return |
public static FromBytes ( byte bytes, ByteOrder order ) : |
||
bytes | byte | The byte array to use. |
order | ByteOrder | Byte order to use. |
return |
public static FromStream ( Stream stream ) : |
||
stream | Stream | A stream. |
return |
public static FromStream ( Stream stream, ByteOrder order ) : |
||
stream | Stream | A stream. |
order | ByteOrder | Byte order to use. |
return |
public ReadBytes ( int num ) : byte[] | ||
num | int | Number of bytes to read. |
return | byte[] |
public ReadBytes ( uint num ) : byte[] | ||
num | uint | Number of bytes to read. |
return | byte[] |
public ReadCString ( int num ) : string | ||
num | int | The number of characters to read. |
return | string |
public ReadCString ( int num, bool trimNull ) : string | ||
num | int | The number of characters to read. |
trimNull | bool | Trim the trailing 0? |
return | string |
public ReadVariableLengthPascalString ( ) : string | ||
return | string |
public Seek ( SeekOrigin origin, long offset ) : void | ||
origin | SeekOrigin | Where to start from. |
offset | long | The offset to seek to. |
return | void |
public SeekFromMark ( long numBytes ) : void | ||
numBytes | long | The number of bytes to add to the offset (mark). |
return | void |
public Skip ( long numBytes ) : void | ||
numBytes | long | Number of bytes to skip. |
return | void |