C# Class Brunet.Util.MemBlock

Inheritance: System.IComparable, System.ICloneable, ICopyable
ファイルを表示 Open project: johnynek/brunet Class Usage Examples

Protected Properties

Property Type Description
_buffer byte[]
_hc int
_length int
_null MemBlock
_offset int

Public Methods

Method Description
Clone ( ) : object
CompareTo ( object o ) : int
Concat ( ) : MemBlock
Copy ( ICopyable c ) : MemBlock
Copy ( byte source ) : MemBlock
Copy ( byte source, int offset, int length ) : MemBlock
CopyTo ( byte dest, int offset_into_dest ) : int
Equals ( object a ) : bool
ExtendHead ( int count ) : MemBlock
GetHashCode ( ) : int
GetString ( System e ) : string
GetString ( System e, int off, int length ) : string
IndexOf ( byte b ) : int
IndexOf ( byte b, int offset ) : int
IsAscii ( int off, int l ) : bool
MemBlock ( ) : NUnit.Framework
Reference ( byte data ) : MemBlock
Reference ( byte data, int offset, int length ) : MemBlock
Slice ( int offset ) : MemBlock
Slice ( int offset, int length ) : MemBlock
ToBase16String ( ) : string
ToBase32String ( ) : string
ToBase64String ( ) : string
ToMemoryStream ( ) : System.IO.MemoryStream
ToString ( ) : string
WriteTo ( System s ) : void
this ( int pos ) : byte

Protected Methods

Method Description
MemBlock ( byte data, int offset, int length ) : NUnit.Framework

Private Methods

Method Description
SomeInsanityTests ( ) : void
StringTests ( ) : void
Test ( ) : void

Method Details

Clone() public method

public Clone ( ) : object
return object

CompareTo() public method

public CompareTo ( object o ) : int
o object
return int

Concat() static public method

static public Concat ( ) : MemBlock
return MemBlock

Copy() public static method

public static Copy ( ICopyable c ) : MemBlock
c ICopyable
return MemBlock

Copy() public static method

public static Copy ( byte source ) : MemBlock
source byte
return MemBlock

Copy() public static method

public static Copy ( byte source, int offset, int length ) : MemBlock
source byte
offset int
length int
return MemBlock

CopyTo() public method

public CopyTo ( byte dest, int offset_into_dest ) : int
dest byte
offset_into_dest int
return int

Equals() public method

public Equals ( object a ) : bool
a object
return bool

ExtendHead() public method

public ExtendHead ( int count ) : MemBlock
count int
return MemBlock

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetString() public method

public GetString ( System e ) : string
e System
return string

GetString() public method

public GetString ( System e, int off, int length ) : string
e System
off int
length int
return string

IndexOf() public method

public IndexOf ( byte b ) : int
b byte
return int

IndexOf() public method

public IndexOf ( byte b, int offset ) : int
b byte
offset int
return int

IsAscii() public method

public IsAscii ( int off, int l ) : bool
off int
l int
return bool

MemBlock() public method

public MemBlock ( ) : NUnit.Framework
return NUnit.Framework

MemBlock() protected method

protected MemBlock ( byte data, int offset, int length ) : NUnit.Framework
data byte
offset int
length int
return NUnit.Framework

Reference() static public method

static public Reference ( byte data ) : MemBlock
data byte
return MemBlock

Reference() static public method

static public Reference ( byte data, int offset, int length ) : MemBlock
data byte
offset int
length int
return MemBlock

Slice() public method

public Slice ( int offset ) : MemBlock
offset int
return MemBlock

Slice() public method

public Slice ( int offset, int length ) : MemBlock
offset int
length int
return MemBlock

ToBase16String() public method

public ToBase16String ( ) : string
return string

ToBase32String() public method

public ToBase32String ( ) : string
return string

ToBase64String() public method

public ToBase64String ( ) : string
return string

ToMemoryStream() public method

public ToMemoryStream ( ) : System.IO.MemoryStream
return System.IO.MemoryStream

ToString() public method

public ToString ( ) : string
return string

WriteTo() public method

public WriteTo ( System s ) : void
s System
return void

this() public method

public this ( int pos ) : byte
pos int
return byte

Property Details

_buffer protected_oe property

protected byte[] _buffer
return byte[]

_hc protected_oe property

protected int _hc
return int

_length protected_oe property

protected int _length
return int

_null protected_oe static_oe property

protected static MemBlock,Brunet.Util _null
return MemBlock

_offset protected_oe property

protected int _offset
return int