C# Class Hpdi.VssPhysicalLib.BufferReader

Reads VSS data types from a byte buffer.
显示文件 Open project: abevoelker/vss2git Class Usage Examples

Public Methods

Method Description
BufferReader ( Encoding encoding, byte data ) : System
BufferReader ( Encoding encoding, byte data, int offset, int limit ) : System
Checksum16 ( ) : ushort
Crc16 ( ) : ushort
Crc16 ( int bytes ) : ushort
Extract ( int bytes ) : BufferReader
FormatBytes ( int bytes ) : string
FormatRemaining ( ) : string
GetBytes ( int bytes ) : ArraySegment
ReadByteString ( int bytes ) : string
ReadDateTime ( ) : DateTime
ReadInt16 ( ) : short
ReadInt32 ( ) : int
ReadName ( ) : VssName
ReadSignature ( int length ) : string
ReadString ( int fieldSize ) : string
Skip ( int bytes ) : void

Private Methods

Method Description
CheckRead ( int bytes ) : void

Method Details

BufferReader() public method

public BufferReader ( Encoding encoding, byte data ) : System
encoding System.Text.Encoding
data byte
return System

BufferReader() public method

public BufferReader ( Encoding encoding, byte data, int offset, int limit ) : System
encoding System.Text.Encoding
data byte
offset int
limit int
return System

Checksum16() public method

public Checksum16 ( ) : ushort
return ushort

Crc16() public method

public Crc16 ( ) : ushort
return ushort

Crc16() public method

public Crc16 ( int bytes ) : ushort
bytes int
return ushort

Extract() public method

public Extract ( int bytes ) : BufferReader
bytes int
return BufferReader

FormatBytes() public method

public FormatBytes ( int bytes ) : string
bytes int
return string

FormatRemaining() public method

public FormatRemaining ( ) : string
return string

GetBytes() public method

public GetBytes ( int bytes ) : ArraySegment
bytes int
return ArraySegment

ReadByteString() public method

public ReadByteString ( int bytes ) : string
bytes int
return string

ReadDateTime() public method

public ReadDateTime ( ) : DateTime
return DateTime

ReadInt16() public method

public ReadInt16 ( ) : short
return short

ReadInt32() public method

public ReadInt32 ( ) : int
return int

ReadName() public method

public ReadName ( ) : VssName
return VssName

ReadSignature() public method

public ReadSignature ( int length ) : string
length int
return string

ReadString() public method

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

Skip() public method

public Skip ( int bytes ) : void
bytes int
return void