C# Class BitSharp.Common.Bits

Exibir arquivo Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
EncodeBool ( bool value, byte buffer, int offset ) : void
EncodeInt16 ( short value, byte buffer, int offset ) : void
EncodeInt32 ( int value, byte buffer, int offset ) : void
EncodeInt32BE ( int value, byte buffer, int offset ) : void
EncodeInt64 ( long value, byte buffer, int offset ) : void
EncodeInt64BE ( long value, byte buffer, int offset ) : void
EncodeUInt16 ( ushort value, byte buffer, int offset ) : void
EncodeUInt32 ( uint value, byte buffer, int offset ) : void
EncodeUInt32BE ( uint value, byte buffer, int offset ) : void
EncodeUInt64 ( ulong value, byte buffer, int offset ) : void
EncodeUInt64BE ( ulong value, byte buffer, int offset ) : void
GetBytes ( Int16 value ) : byte[]
GetBytes ( Int32 value ) : byte[]
GetBytes ( Int64 value ) : byte[]
GetBytes ( UInt16 value ) : byte[]
GetBytes ( UInt256 value ) : byte[]
GetBytes ( UInt32 value ) : byte[]
GetBytes ( UInt64 value ) : byte[]
Order ( byte value ) : byte[]
ToInt32 ( byte value, int startIndex ) : Int32
ToInt64 ( byte value, int startIndex ) : Int64
ToInt64BE ( byte buffer, int offset ) : long
ToString ( byte value, int startIndex ) : string
ToUInt16 ( byte value, int startIndex ) : UInt16
ToUInt256 ( byte value, int startIndex ) : UInt256
ToUInt32 ( byte value, int startIndex ) : UInt32
ToUInt64 ( byte value, int startIndex ) : UInt64
ToUInt64BE ( byte buffer, int offset ) : ulong

Method Details

EncodeBool() public static method

public static EncodeBool ( bool value, byte buffer, int offset ) : void
value bool
buffer byte
offset int
return void

EncodeInt16() public static method

public static EncodeInt16 ( short value, byte buffer, int offset ) : void
value short
buffer byte
offset int
return void

EncodeInt32() public static method

public static EncodeInt32 ( int value, byte buffer, int offset ) : void
value int
buffer byte
offset int
return void

EncodeInt32BE() public static method

public static EncodeInt32BE ( int value, byte buffer, int offset ) : void
value int
buffer byte
offset int
return void

EncodeInt64() public static method

public static EncodeInt64 ( long value, byte buffer, int offset ) : void
value long
buffer byte
offset int
return void

EncodeInt64BE() public static method

public static EncodeInt64BE ( long value, byte buffer, int offset ) : void
value long
buffer byte
offset int
return void

EncodeUInt16() public static method

public static EncodeUInt16 ( ushort value, byte buffer, int offset ) : void
value ushort
buffer byte
offset int
return void

EncodeUInt32() public static method

public static EncodeUInt32 ( uint value, byte buffer, int offset ) : void
value uint
buffer byte
offset int
return void

EncodeUInt32BE() public static method

public static EncodeUInt32BE ( uint value, byte buffer, int offset ) : void
value uint
buffer byte
offset int
return void

EncodeUInt64() public static method

public static EncodeUInt64 ( ulong value, byte buffer, int offset ) : void
value ulong
buffer byte
offset int
return void

EncodeUInt64BE() public static method

public static EncodeUInt64BE ( ulong value, byte buffer, int offset ) : void
value ulong
buffer byte
offset int
return void

GetBytes() public static method

public static GetBytes ( Int16 value ) : byte[]
value System.Int16
return byte[]

GetBytes() public static method

public static GetBytes ( Int32 value ) : byte[]
value Int32
return byte[]

GetBytes() public static method

public static GetBytes ( Int64 value ) : byte[]
value Int64
return byte[]

GetBytes() public static method

public static GetBytes ( UInt16 value ) : byte[]
value UInt16
return byte[]

GetBytes() public static method

public static GetBytes ( UInt256 value ) : byte[]
value UInt256
return byte[]

GetBytes() public static method

public static GetBytes ( UInt32 value ) : byte[]
value UInt32
return byte[]

GetBytes() public static method

public static GetBytes ( UInt64 value ) : byte[]
value UInt64
return byte[]

Order() public static method

public static Order ( byte value ) : byte[]
value byte
return byte[]

ToInt32() public static method

public static ToInt32 ( byte value, int startIndex ) : Int32
value byte
startIndex int
return Int32

ToInt64() public static method

public static ToInt64 ( byte value, int startIndex ) : Int64
value byte
startIndex int
return Int64

ToInt64BE() public static method

public static ToInt64BE ( byte buffer, int offset ) : long
buffer byte
offset int
return long

ToString() public static method

public static ToString ( byte value, int startIndex ) : string
value byte
startIndex int
return string

ToUInt16() public static method

public static ToUInt16 ( byte value, int startIndex ) : UInt16
value byte
startIndex int
return UInt16

ToUInt256() public static method

public static ToUInt256 ( byte value, int startIndex ) : UInt256
value byte
startIndex int
return UInt256

ToUInt32() public static method

public static ToUInt32 ( byte value, int startIndex ) : UInt32
value byte
startIndex int
return UInt32

ToUInt64() public static method

public static ToUInt64 ( byte value, int startIndex ) : UInt64
value byte
startIndex int
return UInt64

ToUInt64BE() public static method

public static ToUInt64BE ( byte buffer, int offset ) : ulong
buffer byte
offset int
return ulong