C# Class Peg.Base.PegByteParser

Inheritance: PegBaseParser
Exibir arquivo Open project: Andos/BinaryFileSchema Class Usage Examples

Protected Properties

Property Type Description
src_ byte[]

Public Methods

Method Description
Bit ( int bitNo, byte toMatch ) : bool
Bits ( int lowBitNo, int highBitNo, BytesetData toMatch ) : bool
Bits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
BitsInto ( int lowBitNo, int highBitNo, BytesetData toMatch, int &into ) : bool
BitsInto ( int lowBitNo, int highBitNo, int &into ) : bool
Char ( byte c1 ) : bool
Char ( byte c1, byte c2 ) : bool
Char ( byte c1, byte c2, byte c3 ) : bool
Char ( byte c1, byte c2, byte c3, byte c4 ) : bool
Char ( byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7, byte c8 ) : bool
Construct ( byte src, TextWriter Fout ) : void
Fatal ( string sMsg ) : bool
GetSource ( ) : byte[]
IChar ( byte c1 ) : bool
IChar ( byte c1, byte c2 ) : bool
IChar ( byte c1, byte c2, byte c3 ) : bool
IChar ( byte c1, byte c2, byte c3, byte c4 ) : bool
IChar ( byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
IChar ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
IChar ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
In ( byte s ) : bool
In ( byte c0, byte c1 ) : bool
In ( byte c0, byte c1, byte c2, byte c3 ) : bool
In ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
In ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
Into ( Matcher toMatch, PegBegEnd &begEnd ) : bool
Into ( Matcher toMatch, byte &into ) : bool
Into ( Matcher toMatch, double &into ) : bool
Into ( Matcher toMatch, int &into ) : bool
IntoBits ( int lowBitNo, int highBitNo, BytesetData toMatch, int &val ) : bool
IntoBits ( int lowBitNo, int highBitNo, int &val ) : bool
NotBit ( int bitNo, byte toMatch ) : bool
NotBits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
NotIn ( byte s ) : bool
NotOneOf ( byte s ) : bool
OneOf ( BytesetData bset ) : bool
OneOf ( byte s ) : bool
OneOf ( byte c0, byte c1 ) : bool
OneOf ( byte c0, byte c1, byte c2 ) : bool
OneOf ( byte c0, byte c1, byte c2, byte c3 ) : bool
OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4 ) : bool
OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
PeekBit ( int bitNo, byte toMatch ) : bool
PeekBits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
PegByteParser ( ) : System
PegByteParser ( byte src ) : System
PegByteParser ( byte src, TextWriter errOut ) : System
SetSource ( byte src ) : void
ToUpper ( byte c ) : byte
Warning ( string sMsg ) : bool

Protected Methods

Method Description
LogOutMsg ( string sErrKind, string sMsg ) : void

Method Details

Bit() public method

public Bit ( int bitNo, byte toMatch ) : bool
bitNo int
toMatch byte
return bool

Bits() public method

public Bits ( int lowBitNo, int highBitNo, BytesetData toMatch ) : bool
lowBitNo int
highBitNo int
toMatch BytesetData
return bool

Bits() public method

public Bits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
lowBitNo int
highBitNo int
toMatch byte
return bool

BitsInto() public method

public BitsInto ( int lowBitNo, int highBitNo, BytesetData toMatch, int &into ) : bool
lowBitNo int
highBitNo int
toMatch BytesetData
into int
return bool

BitsInto() public method

public BitsInto ( int lowBitNo, int highBitNo, int &into ) : bool
lowBitNo int
highBitNo int
into int
return bool

Char() public method

public Char ( byte c1 ) : bool
c1 byte
return bool

Char() public method

public Char ( byte c1, byte c2 ) : bool
c1 byte
c2 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3 ) : bool
c1 byte
c2 byte
c3 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3, byte c4 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
c7 byte
return bool

Char() public method

public Char ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7, byte c8 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
c7 byte
c8 byte
return bool

Construct() public method

public Construct ( byte src, TextWriter Fout ) : void
src byte
Fout System.IO.TextWriter
return void

Fatal() public method

public Fatal ( string sMsg ) : bool
sMsg string
return bool

GetSource() public method

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

IChar() public method

public IChar ( byte c1 ) : bool
c1 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2 ) : bool
c1 byte
c2 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2, byte c3 ) : bool
c1 byte
c2 byte
c3 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2, byte c3, byte c4 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
return bool

IChar() public method

public IChar ( byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
c7 byte
return bool

In() public method

public In ( byte s ) : bool
s byte
return bool

In() public method

public In ( byte c0, byte c1 ) : bool
c0 byte
c1 byte
return bool

In() public method

public In ( byte c0, byte c1, byte c2, byte c3 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
return bool

In() public method

public In ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
return bool

In() public method

public In ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
c7 byte
return bool

Into() public method

public Into ( Matcher toMatch, PegBegEnd &begEnd ) : bool
toMatch Matcher
begEnd PegBegEnd
return bool

Into() public method

public Into ( Matcher toMatch, byte &into ) : bool
toMatch Matcher
into byte
return bool

Into() public method

public Into ( Matcher toMatch, double &into ) : bool
toMatch Matcher
into double
return bool

Into() public method

public Into ( Matcher toMatch, int &into ) : bool
toMatch Matcher
into int
return bool

IntoBits() public method

public IntoBits ( int lowBitNo, int highBitNo, BytesetData toMatch, int &val ) : bool
lowBitNo int
highBitNo int
toMatch BytesetData
val int
return bool

IntoBits() public method

public IntoBits ( int lowBitNo, int highBitNo, int &val ) : bool
lowBitNo int
highBitNo int
val int
return bool

LogOutMsg() protected method

protected LogOutMsg ( string sErrKind, string sMsg ) : void
sErrKind string
sMsg string
return void

NotBit() public method

public NotBit ( int bitNo, byte toMatch ) : bool
bitNo int
toMatch byte
return bool

NotBits() public method

public NotBits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
lowBitNo int
highBitNo int
toMatch byte
return bool

NotIn() public method

public NotIn ( byte s ) : bool
s byte
return bool

NotOneOf() public method

public NotOneOf ( byte s ) : bool
s byte
return bool

OneOf() public method

public OneOf ( BytesetData bset ) : bool
bset BytesetData
return bool

OneOf() public method

public OneOf ( byte s ) : bool
s byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1 ) : bool
c0 byte
c1 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2 ) : bool
c0 byte
c1 byte
c2 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2, byte c3 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
return bool

OneOf() public method

public OneOf ( byte c0, byte c1, byte c2, byte c3, byte c4, byte c5, byte c6, byte c7 ) : bool
c0 byte
c1 byte
c2 byte
c3 byte
c4 byte
c5 byte
c6 byte
c7 byte
return bool

PeekBit() public method

public PeekBit ( int bitNo, byte toMatch ) : bool
bitNo int
toMatch byte
return bool

PeekBits() public method

public PeekBits ( int lowBitNo, int highBitNo, byte toMatch ) : bool
lowBitNo int
highBitNo int
toMatch byte
return bool

PegByteParser() public method

public PegByteParser ( ) : System
return System

PegByteParser() public method

public PegByteParser ( byte src ) : System
src byte
return System

PegByteParser() public method

public PegByteParser ( byte src, TextWriter errOut ) : System
src byte
errOut System.IO.TextWriter
return System

SetSource() public method

public SetSource ( byte src ) : void
src byte
return void

ToUpper() public static method

public static ToUpper ( byte c ) : byte
c byte
return byte

Warning() public method

public Warning ( string sMsg ) : bool
sMsg string
return bool

Property Details

src_ protected_oe property

protected byte[] src_
return byte[]