C# Class RtfDomParser.ByteBuffer

Binary data buffer
Exibir arquivo Open project: SourceCodeBackup/RtfDomParser

Protected Properties

Property Type Description
bsBuffer byte[]
intCount int

Public Methods

Method Description
Add ( byte b ) : void

Add a byte

Add ( byte bs, int StartIndex, int Length ) : void

Add bytes

ByteBuffer ( ) : System

Initialize instance

Clear ( ) : void

Clear object's data

GetString ( System encoding ) : string

Convert bytes data to a string

Reset ( ) : void

Reset current position without clear buffer

ToArray ( ) : byte[]

Get validate bytes array

this ( int index ) : byte

Set of get byte at special index which starts with 0

Protected Methods

Method Description
FixBuffer ( int NewSize ) : void

Fix inner buffer so it can fit to new size of buffer

Method Details

Add() public method

Add a byte
public Add ( byte b ) : void
b byte byte data
return void

Add() public method

Add bytes
public Add ( byte bs, int StartIndex, int Length ) : void
bs byte Bytes
StartIndex int Start index
Length int Length
return void

ByteBuffer() public method

Initialize instance
public ByteBuffer ( ) : System
return System

Clear() public method

Clear object's data
public Clear ( ) : void
return void

FixBuffer() protected method

Fix inner buffer so it can fit to new size of buffer
protected FixBuffer ( int NewSize ) : void
NewSize int new size
return void

GetString() public method

Convert bytes data to a string
public GetString ( System encoding ) : string
encoding System string encoding
return string

Reset() public method

Reset current position without clear buffer
public Reset ( ) : void
return void

ToArray() public method

Get validate bytes array
public ToArray ( ) : byte[]
return byte[]

this() public method

Set of get byte at special index which starts with 0
public this ( int index ) : byte
index int
return byte

Property Details

bsBuffer protected_oe property

byte array
protected byte[] bsBuffer
return byte[]

intCount protected_oe property

Current contains validate bytes
protected int intCount
return int