C# Class Flood.Serialization.BinarySerializer

Inheritance: Serializer
Show file Open project: FloodProject/flood Class Usage Examples

Protected Properties

Property Type Description
checkReadLength_ bool
readLength_ int

Public Methods

Method Description
BinarySerializer ( ) : System
BinarySerializer ( System stream ) : System
ReadBinary ( ) : byte[]
ReadBool ( ) : bool
ReadByte ( ) : byte
ReadDataObjectBegin ( ) : DataObject
ReadDataObjectEnd ( ) : void
ReadDouble ( ) : double
ReadFieldBegin ( ) : Field
ReadFieldEnd ( ) : void
ReadI16 ( ) : short
ReadI32 ( ) : int
ReadI64 ( ) : long
ReadListBegin ( ) : TList
ReadListEnd ( ) : void
ReadMapBegin ( ) : TMap
ReadMapEnd ( ) : void
SetReadLength ( int readLength ) : void
WriteBinary ( byte b ) : void
WriteBool ( bool b ) : void
WriteByte ( byte b ) : void
WriteDataObjectBegin ( DataObject struc ) : void
WriteDataObjectEnd ( ) : void
WriteDouble ( double d ) : void
WriteFieldBegin ( Field field ) : void
WriteFieldEnd ( ) : void
WriteFieldStop ( ) : void
WriteI16 ( short s ) : void
WriteI32 ( int i32 ) : void
WriteI64 ( long i64 ) : void
WriteListBegin ( TList list ) : void
WriteListEnd ( ) : void
WriteMapBegin ( TMap map ) : void
WriteMapEnd ( ) : void

Protected Methods

Method Description
CheckReadLength ( int length ) : void

Private Methods

Method Description
ReadAll ( byte buf, int off, int len ) : int
ReadStringBody ( int size ) : string

Method Details

BinarySerializer() public method

public BinarySerializer ( ) : System
return System

BinarySerializer() public method

public BinarySerializer ( System stream ) : System
stream System
return System

CheckReadLength() protected method

protected CheckReadLength ( int length ) : void
length int
return void

ReadBinary() public method

public ReadBinary ( ) : byte[]
return byte[]

ReadBool() public method

public ReadBool ( ) : bool
return bool

ReadByte() public method

public ReadByte ( ) : byte
return byte

ReadDataObjectBegin() public method

public ReadDataObjectBegin ( ) : DataObject
return DataObject

ReadDataObjectEnd() public method

public ReadDataObjectEnd ( ) : void
return void

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadFieldBegin() public method

public ReadFieldBegin ( ) : Field
return Field

ReadFieldEnd() public method

public ReadFieldEnd ( ) : void
return void

ReadI16() public method

public ReadI16 ( ) : short
return short

ReadI32() public method

public ReadI32 ( ) : int
return int

ReadI64() public method

public ReadI64 ( ) : long
return long

ReadListBegin() public method

public ReadListBegin ( ) : TList
return TList

ReadListEnd() public method

public ReadListEnd ( ) : void
return void

ReadMapBegin() public method

public ReadMapBegin ( ) : TMap
return TMap

ReadMapEnd() public method

public ReadMapEnd ( ) : void
return void

SetReadLength() public method

public SetReadLength ( int readLength ) : void
readLength int
return void

WriteBinary() public method

public WriteBinary ( byte b ) : void
b byte
return void

WriteBool() public method

public WriteBool ( bool b ) : void
b bool
return void

WriteByte() public method

public WriteByte ( byte b ) : void
b byte
return void

WriteDataObjectBegin() public method

public WriteDataObjectBegin ( DataObject struc ) : void
struc DataObject
return void

WriteDataObjectEnd() public method

public WriteDataObjectEnd ( ) : void
return void

WriteDouble() public method

public WriteDouble ( double d ) : void
d double
return void

WriteFieldBegin() public method

public WriteFieldBegin ( Field field ) : void
field Field
return void

WriteFieldEnd() public method

public WriteFieldEnd ( ) : void
return void

WriteFieldStop() public method

public WriteFieldStop ( ) : void
return void

WriteI16() public method

public WriteI16 ( short s ) : void
s short
return void

WriteI32() public method

public WriteI32 ( int i32 ) : void
i32 int
return void

WriteI64() public method

public WriteI64 ( long i64 ) : void
i64 long
return void

WriteListBegin() public method

public WriteListBegin ( TList list ) : void
list TList
return void

WriteListEnd() public method

public WriteListEnd ( ) : void
return void

WriteMapBegin() public method

public WriteMapBegin ( TMap map ) : void
map TMap
return void

WriteMapEnd() public method

public WriteMapEnd ( ) : void
return void

Property Details

checkReadLength_ protected property

protected bool checkReadLength_
return bool

readLength_ protected property

protected int readLength_
return int