C# Class Mosa.ClassLib.BinaryFormat

Binary Formatter (Little Endian)
显示文件 Open project: tgiphil/MOSA-Project Class Usage Examples

Public Methods

Method Description
BinaryFormat ( byte data ) : System.Text

Initializes a new instance of the BinaryFormat struct.

BinaryFormat ( uint length ) : System.Text

Initializes a new instance of the BinaryFormat struct.

Fill ( uint offset, byte value, uint length ) : void

Fills the specified offset.

GetByte ( uint offset ) : byte

Gets the byte.

GetBytes ( uint offset, uint length ) : byte[]

Gets the bytes.

GetChar ( uint offset ) : char

Gets the char.

GetChars ( uint offset, uint length ) : char[]

Gets the chars.

GetString ( uint offset, uint length ) : string

Gets the string.

GetUInt ( uint offset ) : uint

Gets the usigned int.

GetULong ( uint offset ) : ulong

Gets the unsigned long.

GetUShort ( uint offset ) : ushort

Gets the unsigned short.

SetByte ( uint offset, byte value ) : void

Sets the byte.

SetBytes ( uint offset, byte value ) : void

Sets the bytes.

SetBytes ( uint offset, byte value, uint start, uint length ) : void

Sets the bytes.

SetChar ( uint offset, char value ) : void

Sets the char.

SetChars ( uint offset, char value ) : void

Sets the chars.

SetString ( uint offset, string value ) : void

Sets the string.

SetString ( uint offset, string value, uint length ) : void

Sets the string.

SetUInt ( uint offset, uint value ) : void

Sets the unsigned int.

SetUIntReversed ( uint offset, uint value ) : void

Sets the unsigned int reversed.

SetULong ( uint offset, ulong value ) : void

Sets the unsigned long.

SetULong ( ulong offset, ulong value ) : void

Sets the unsigned long.

SetULongReversed ( uint offset, ulong value ) : void

Sets the unsigned long reversed.

SetUShort ( uint offset, ushort value ) : void

Sets the unsigned short.

SetUShortReversed ( uint offset, ushort value ) : void

Sets the unsigned short reversed.

this ( int index ) : byte

Gets or sets the System.Byte at the specified index.

Method Details

BinaryFormat() public method

Initializes a new instance of the BinaryFormat struct.
public BinaryFormat ( byte data ) : System.Text
data byte The data.
return System.Text

BinaryFormat() public method

Initializes a new instance of the BinaryFormat struct.
public BinaryFormat ( uint length ) : System.Text
length uint The length.
return System.Text

Fill() public method

Fills the specified offset.
public Fill ( uint offset, byte value, uint length ) : void
offset uint The offset.
value byte The value.
length uint The length.
return void

GetByte() public method

Gets the byte.
public GetByte ( uint offset ) : byte
offset uint The offset.
return byte

GetBytes() public method

Gets the bytes.
public GetBytes ( uint offset, uint length ) : byte[]
offset uint The offset.
length uint The length.
return byte[]

GetChar() public method

Gets the char.
public GetChar ( uint offset ) : char
offset uint The offset.
return char

GetChars() public method

Gets the chars.
public GetChars ( uint offset, uint length ) : char[]
offset uint The offset.
length uint The length.
return char[]

GetString() public method

Gets the string.
public GetString ( uint offset, uint length ) : string
offset uint The offset.
length uint The length.
return string

GetUInt() public method

Gets the usigned int.
public GetUInt ( uint offset ) : uint
offset uint The offset.
return uint

GetULong() public method

Gets the unsigned long.
public GetULong ( uint offset ) : ulong
offset uint The offset.
return ulong

GetUShort() public method

Gets the unsigned short.
public GetUShort ( uint offset ) : ushort
offset uint The offset.
return ushort

SetByte() public method

Sets the byte.
public SetByte ( uint offset, byte value ) : void
offset uint The offset.
value byte The value.
return void

SetBytes() public method

Sets the bytes.
public SetBytes ( uint offset, byte value ) : void
offset uint The offset.
value byte The value.
return void

SetBytes() public method

Sets the bytes.
public SetBytes ( uint offset, byte value, uint start, uint length ) : void
offset uint The offset.
value byte The value.
start uint The start.
length uint The length.
return void

SetChar() public method

Sets the char.
public SetChar ( uint offset, char value ) : void
offset uint The offset.
value char The value.
return void

SetChars() public method

Sets the chars.
public SetChars ( uint offset, char value ) : void
offset uint The offset.
value char The value.
return void

SetString() public method

Sets the string.
public SetString ( uint offset, string value ) : void
offset uint The offset.
value string The value.
return void

SetString() public method

Sets the string.
public SetString ( uint offset, string value, uint length ) : void
offset uint The offset.
value string The value.
length uint The length.
return void

SetUInt() public method

Sets the unsigned int.
public SetUInt ( uint offset, uint value ) : void
offset uint The offset.
value uint The value.
return void

SetUIntReversed() public method

Sets the unsigned int reversed.
public SetUIntReversed ( uint offset, uint value ) : void
offset uint The offset.
value uint The value.
return void

SetULong() public method

Sets the unsigned long.
public SetULong ( uint offset, ulong value ) : void
offset uint The offset.
value ulong The value.
return void

SetULong() public method

Sets the unsigned long.
public SetULong ( ulong offset, ulong value ) : void
offset ulong The offset.
value ulong The value.
return void

SetULongReversed() public method

Sets the unsigned long reversed.
public SetULongReversed ( uint offset, ulong value ) : void
offset uint The offset.
value ulong The value.
return void

SetUShort() public method

Sets the unsigned short.
public SetUShort ( uint offset, ushort value ) : void
offset uint The offset.
value ushort The value.
return void

SetUShortReversed() public method

Sets the unsigned short reversed.
public SetUShortReversed ( uint offset, ushort value ) : void
offset uint The offset.
value ushort The value.
return void

this() public method

Gets or sets the System.Byte at the specified index.
public this ( int index ) : byte
index int
return byte