C# Class Medusa.Siren.IO.InputMemoryStream

Implements IInputStream on top of memory buffer
Inheritance: IInputStream
显示文件 Open project: fjz13/Medusa Class Usage Examples

Public Methods

Method Description
Accept ( ArraySegment data ) : void
InputMemoryStream ( ) : System
InputMemoryStream ( ArraySegment seg ) : System
InputMemoryStream ( byte data ) : System
InputMemoryStream ( byte data, int length ) : System
InputMemoryStream ( byte data, int offset, int length ) : System
IsEnd ( ) : bool
ReadBytes ( int count ) : byte[]
ReadDouble ( ) : double
ReadFloat ( ) : float
ReadString ( int size ) : string
ReadUInt16 ( ) : ushort
ReadUInt32 ( ) : uint
ReadUInt64 ( ) : ulong
ReadUInt8 ( ) : byte
ReadVarUInt16 ( ) : ushort
ReadVarUInt32 ( ) : uint
ReadVarUInt64 ( ) : ulong
SkipBytes ( int count ) : void

Method Details

Accept() public method

public Accept ( ArraySegment data ) : void
data ArraySegment
return void

InputMemoryStream() public method

public InputMemoryStream ( ) : System
return System

InputMemoryStream() public method

public InputMemoryStream ( ArraySegment seg ) : System
seg ArraySegment
return System

InputMemoryStream() public method

public InputMemoryStream ( byte data ) : System
data byte
return System

InputMemoryStream() public method

public InputMemoryStream ( byte data, int length ) : System
data byte
length int
return System

InputMemoryStream() public method

public InputMemoryStream ( byte data, int offset, int length ) : System
data byte
offset int
length int
return System

IsEnd() public method

public IsEnd ( ) : bool
return bool

ReadBytes() public method

public ReadBytes ( int count ) : byte[]
count int
return byte[]

ReadDouble() public method

public ReadDouble ( ) : double
return double

ReadFloat() public method

public ReadFloat ( ) : float
return float

ReadString() public method

public ReadString ( int size ) : string
size int
return string

ReadUInt16() public method

public ReadUInt16 ( ) : ushort
return ushort

ReadUInt32() public method

public ReadUInt32 ( ) : uint
return uint

ReadUInt64() public method

public ReadUInt64 ( ) : ulong
return ulong

ReadUInt8() public method

public ReadUInt8 ( ) : byte
return byte

ReadVarUInt16() public method

public ReadVarUInt16 ( ) : ushort
return ushort

ReadVarUInt32() public method

public ReadVarUInt32 ( ) : uint
return uint

ReadVarUInt64() public method

public ReadVarUInt64 ( ) : ulong
return ulong

SkipBytes() public method

public SkipBytes ( int count ) : void
count int
return void