C# Class Brunet.Util.NumberSerializer

Show file Open project: pstjuste/brunet Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
SwapEndianism ( byte data, int offset, int length ) : void

Private Methods

Method Description
Test ( ) : void

Method Details

GetByteCount() public static method

public static GetByteCount ( string s ) : int
s string
return int

NumberSerializer() public method

public NumberSerializer ( ) : System
return System

ReadBool() public static method

public static ReadBool ( Stream s ) : bool
s Stream
return bool

ReadDouble() public static method

public static ReadDouble ( MemBlock mb ) : double
mb MemBlock
return double

ReadDouble() public static method

public static ReadDouble ( MemBlock mb, int offset ) : double
mb MemBlock
offset int
return double

ReadDouble() public static method

public static ReadDouble ( Stream s ) : double
s Stream
return double

ReadDouble() public static method

public static ReadDouble ( byte bin, int offset ) : double
bin byte
offset int
return double

ReadFlag() public static method

public static ReadFlag ( byte bin, int offset ) : bool
bin byte
offset int
return bool

ReadFloat() public static method

public static ReadFloat ( MemBlock mb ) : float
mb MemBlock
return float

ReadFloat() public static method

public static ReadFloat ( MemBlock mb, int offset ) : float
mb MemBlock
offset int
return float

ReadFloat() public static method

public static ReadFloat ( Stream s ) : float
s Stream
return float

ReadFloat() public static method

public static ReadFloat ( byte bin, int offset ) : float
bin byte
offset int
return float

ReadInt() public static method

public static ReadInt ( MemBlock mb, int offset ) : int
mb MemBlock
offset int
return int

ReadInt() public static method

public static ReadInt ( System s ) : int
s System
return int

ReadInt() public static method

public static ReadInt ( byte bin, int offset ) : int
bin byte
offset int
return int

ReadLong() public static method

public static ReadLong ( MemBlock bin, int offset ) : long
bin MemBlock
offset int
return long

ReadLong() public static method

public static ReadLong ( System s ) : long
s System
return long

ReadLong() public static method

public static ReadLong ( byte bin, int offset ) : long
bin byte
offset int
return long

ReadShort() public static method

public static ReadShort ( MemBlock bin, int offset ) : short
bin MemBlock
offset int
return short

ReadShort() public static method

public static ReadShort ( System s ) : short
s System
return short

ReadShort() public static method

public static ReadShort ( byte bin, int offset ) : short
bin byte
offset int
return short

ReadString() public static method

public static ReadString ( MemBlock b, int offset, int &bytelength ) : string
b MemBlock
offset int
bytelength int
return string

ReadString() public static method

public static ReadString ( System s, int &len ) : string
s System
len int
return string

ReadString() public static method

public static ReadString ( byte bin, int offset, int &bytelength ) : string
bin byte
offset int
bytelength int
return string

SwapEndianism() protected static method

protected static SwapEndianism ( byte data, int offset, int length ) : void
data byte
offset int
length int
return void

WriteDouble() public static method

public static WriteDouble ( double value, Stream s ) : void
value double
s Stream
return void

WriteDouble() public static method

public static WriteDouble ( double value, byte target, int offset ) : void
value double
target byte
offset int
return void

WriteFlag() public static method

public static WriteFlag ( bool flag, byte target, int offset ) : void
flag bool
target byte
offset int
return void

WriteFloat() public static method

public static WriteFloat ( float value, Stream s ) : void
value float
s Stream
return void

WriteFloat() public static method

public static WriteFloat ( float value, byte target, int offset ) : void
value float
target byte
offset int
return void

WriteInt() public static method

public static WriteInt ( int val, Stream s ) : void
val int
s Stream
return void

WriteInt() public static method

public static WriteInt ( int val, byte target, int offset ) : void
val int
target byte
offset int
return void

WriteLong() public static method

public static WriteLong ( long val, Stream s ) : void
val long
s Stream
return void

WriteLong() public static method

public static WriteLong ( long lval, byte target, int offset ) : void
lval long
target byte
offset int
return void

WriteShort() public static method

public static WriteShort ( short val, Stream s ) : void
val short
s Stream
return void

WriteShort() public static method

public static WriteShort ( short val, byte target, int offset ) : void
val short
target byte
offset int
return void

WriteString() public static method

public static WriteString ( string svalue, Stream s ) : int
svalue string
s Stream
return int

WriteString() public static method

public static WriteString ( string svalue, byte target, int offset ) : int
svalue string
target byte
offset int
return int

WriteUInt() public static method

public static WriteUInt ( uint val, Stream s ) : void
val uint
s Stream
return void

WriteUInt() public static method

public static WriteUInt ( uint val, byte target, int offset ) : void
val uint
target byte
offset int
return void

WriteULong() public static method

public static WriteULong ( ulong val, Stream s ) : void
val ulong
s Stream
return void

WriteUShort() public static method

public static WriteUShort ( ushort val, Stream s ) : void
val ushort
s Stream
return void

WriteUShort() public static method

public static WriteUShort ( ushort val, byte target, int offset ) : void
val ushort
target byte
offset int
return void