C# Class Mosa.ClassLib.BinaryFormat

Binary Formatter (Little Endian)
Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

BinaryFormat() public méthode

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

Fill() public méthode

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.
Résultat void

GetByte() public méthode

Gets the byte.
public GetByte ( uint offset ) : byte
offset uint The offset.
Résultat byte

GetBytes() public méthode

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

GetChar() public méthode

Gets the char.
public GetChar ( uint offset ) : char
offset uint The offset.
Résultat char

GetChars() public méthode

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

GetString() public méthode

Gets the string.
public GetString ( uint offset, uint length ) : string
offset uint The offset.
length uint The length.
Résultat string

GetUInt() public méthode

Gets the usigned int.
public GetUInt ( uint offset ) : uint
offset uint The offset.
Résultat uint

GetULong() public méthode

Gets the unsigned long.
public GetULong ( uint offset ) : ulong
offset uint The offset.
Résultat ulong

GetUShort() public méthode

Gets the unsigned short.
public GetUShort ( uint offset ) : ushort
offset uint The offset.
Résultat ushort

SetByte() public méthode

Sets the byte.
public SetByte ( uint offset, byte value ) : void
offset uint The offset.
value byte The value.
Résultat void

SetBytes() public méthode

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

SetBytes() public méthode

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.
Résultat void

SetChar() public méthode

Sets the char.
public SetChar ( uint offset, char value ) : void
offset uint The offset.
value char The value.
Résultat void

SetChars() public méthode

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

SetString() public méthode

Sets the string.
public SetString ( uint offset, string value ) : void
offset uint The offset.
value string The value.
Résultat void

SetString() public méthode

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

SetUInt() public méthode

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

SetUIntReversed() public méthode

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

SetULong() public méthode

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

SetULong() public méthode

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

SetULongReversed() public méthode

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

SetUShort() public méthode

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

SetUShortReversed() public méthode

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

this() public méthode

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