C# Class Brunet.Util.NumberSerializer

Afficher le fichier Open project: pstjuste/brunet Class Usage Examples

Méthodes publiques

Méthode Description
GetByteCount ( string s ) : int
NumberSerializer ( ) : System
ReadBool ( Stream s ) : bool
ReadDouble ( MemBlock mb ) : double
ReadDouble ( MemBlock mb, int offset ) : double
ReadDouble ( Stream s ) : double
ReadDouble ( byte bin, int offset ) : double
ReadFlag ( byte bin, int offset ) : bool
ReadFloat ( MemBlock mb ) : float
ReadFloat ( MemBlock mb, int offset ) : float
ReadFloat ( Stream s ) : float
ReadFloat ( byte bin, int offset ) : float
ReadInt ( MemBlock mb, int offset ) : int
ReadInt ( System s ) : int
ReadInt ( byte bin, int offset ) : int
ReadLong ( MemBlock bin, int offset ) : long
ReadLong ( System s ) : long
ReadLong ( byte bin, int offset ) : long
ReadShort ( MemBlock bin, int offset ) : short
ReadShort ( System s ) : short
ReadShort ( byte bin, int offset ) : short
ReadString ( MemBlock b, int offset, int &bytelength ) : string
ReadString ( System s, int &len ) : string
ReadString ( byte bin, int offset, int &bytelength ) : string
WriteDouble ( double value, Stream s ) : void
WriteDouble ( double value, byte target, int offset ) : void
WriteFlag ( bool flag, byte target, int offset ) : void
WriteFloat ( float value, Stream s ) : void
WriteFloat ( float value, byte target, int offset ) : void
WriteInt ( int val, Stream s ) : void
WriteInt ( int val, byte target, int offset ) : void
WriteLong ( long val, Stream s ) : void
WriteLong ( long lval, byte target, int offset ) : void
WriteShort ( short val, Stream s ) : void
WriteShort ( short val, byte target, int offset ) : void
WriteString ( string svalue, Stream s ) : int
WriteString ( string svalue, byte target, int offset ) : int
WriteUInt ( uint val, Stream s ) : void
WriteUInt ( uint val, byte target, int offset ) : void
WriteULong ( ulong val, Stream s ) : void
WriteUShort ( ushort val, Stream s ) : void
WriteUShort ( ushort val, byte target, int offset ) : void

Méthodes protégées

Méthode Description
SwapEndianism ( byte data, int offset, int length ) : void

Private Methods

Méthode Description
Test ( ) : void

Method Details

GetByteCount() public static méthode

public static GetByteCount ( string s ) : int
s string
Résultat int

NumberSerializer() public méthode

public NumberSerializer ( ) : System
Résultat System

ReadBool() public static méthode

public static ReadBool ( Stream s ) : bool
s Stream
Résultat bool

ReadDouble() public static méthode

public static ReadDouble ( MemBlock mb ) : double
mb MemBlock
Résultat double

ReadDouble() public static méthode

public static ReadDouble ( MemBlock mb, int offset ) : double
mb MemBlock
offset int
Résultat double

ReadDouble() public static méthode

public static ReadDouble ( Stream s ) : double
s Stream
Résultat double

ReadDouble() public static méthode

public static ReadDouble ( byte bin, int offset ) : double
bin byte
offset int
Résultat double

ReadFlag() public static méthode

public static ReadFlag ( byte bin, int offset ) : bool
bin byte
offset int
Résultat bool

ReadFloat() public static méthode

public static ReadFloat ( MemBlock mb ) : float
mb MemBlock
Résultat float

ReadFloat() public static méthode

public static ReadFloat ( MemBlock mb, int offset ) : float
mb MemBlock
offset int
Résultat float

ReadFloat() public static méthode

public static ReadFloat ( Stream s ) : float
s Stream
Résultat float

ReadFloat() public static méthode

public static ReadFloat ( byte bin, int offset ) : float
bin byte
offset int
Résultat float

ReadInt() public static méthode

public static ReadInt ( MemBlock mb, int offset ) : int
mb MemBlock
offset int
Résultat int

ReadInt() public static méthode

public static ReadInt ( System s ) : int
s System
Résultat int

ReadInt() public static méthode

public static ReadInt ( byte bin, int offset ) : int
bin byte
offset int
Résultat int

ReadLong() public static méthode

public static ReadLong ( MemBlock bin, int offset ) : long
bin MemBlock
offset int
Résultat long

ReadLong() public static méthode

public static ReadLong ( System s ) : long
s System
Résultat long

ReadLong() public static méthode

public static ReadLong ( byte bin, int offset ) : long
bin byte
offset int
Résultat long

ReadShort() public static méthode

public static ReadShort ( MemBlock bin, int offset ) : short
bin MemBlock
offset int
Résultat short

ReadShort() public static méthode

public static ReadShort ( System s ) : short
s System
Résultat short

ReadShort() public static méthode

public static ReadShort ( byte bin, int offset ) : short
bin byte
offset int
Résultat short

ReadString() public static méthode

public static ReadString ( MemBlock b, int offset, int &bytelength ) : string
b MemBlock
offset int
bytelength int
Résultat string

ReadString() public static méthode

public static ReadString ( System s, int &len ) : string
s System
len int
Résultat string

ReadString() public static méthode

public static ReadString ( byte bin, int offset, int &bytelength ) : string
bin byte
offset int
bytelength int
Résultat string

SwapEndianism() protected static méthode

protected static SwapEndianism ( byte data, int offset, int length ) : void
data byte
offset int
length int
Résultat void

WriteDouble() public static méthode

public static WriteDouble ( double value, Stream s ) : void
value double
s Stream
Résultat void

WriteDouble() public static méthode

public static WriteDouble ( double value, byte target, int offset ) : void
value double
target byte
offset int
Résultat void

WriteFlag() public static méthode

public static WriteFlag ( bool flag, byte target, int offset ) : void
flag bool
target byte
offset int
Résultat void

WriteFloat() public static méthode

public static WriteFloat ( float value, Stream s ) : void
value float
s Stream
Résultat void

WriteFloat() public static méthode

public static WriteFloat ( float value, byte target, int offset ) : void
value float
target byte
offset int
Résultat void

WriteInt() public static méthode

public static WriteInt ( int val, Stream s ) : void
val int
s Stream
Résultat void

WriteInt() public static méthode

public static WriteInt ( int val, byte target, int offset ) : void
val int
target byte
offset int
Résultat void

WriteLong() public static méthode

public static WriteLong ( long val, Stream s ) : void
val long
s Stream
Résultat void

WriteLong() public static méthode

public static WriteLong ( long lval, byte target, int offset ) : void
lval long
target byte
offset int
Résultat void

WriteShort() public static méthode

public static WriteShort ( short val, Stream s ) : void
val short
s Stream
Résultat void

WriteShort() public static méthode

public static WriteShort ( short val, byte target, int offset ) : void
val short
target byte
offset int
Résultat void

WriteString() public static méthode

public static WriteString ( string svalue, Stream s ) : int
svalue string
s Stream
Résultat int

WriteString() public static méthode

public static WriteString ( string svalue, byte target, int offset ) : int
svalue string
target byte
offset int
Résultat int

WriteUInt() public static méthode

public static WriteUInt ( uint val, Stream s ) : void
val uint
s Stream
Résultat void

WriteUInt() public static méthode

public static WriteUInt ( uint val, byte target, int offset ) : void
val uint
target byte
offset int
Résultat void

WriteULong() public static méthode

public static WriteULong ( ulong val, Stream s ) : void
val ulong
s Stream
Résultat void

WriteUShort() public static méthode

public static WriteUShort ( ushort val, Stream s ) : void
val ushort
s Stream
Résultat void

WriteUShort() public static méthode

public static WriteUShort ( ushort val, byte target, int offset ) : void
val ushort
target byte
offset int
Résultat void