C# Class Mono.DataConverter

Datei anzeigen Open project: codebutler/meshwork

Public Properties

Property Type Description
IsLittleEndian bool

Public Methods

Method Description
DoubleFromBE ( byte data, int index ) : double
DoubleFromLE ( byte data, int index ) : double
DoubleFromNative ( byte data, int index ) : double
FloatFromBE ( byte data, int index ) : float
FloatFromLE ( byte data, int index ) : float
FloatFromNative ( byte data, int index ) : float
GetBytes ( double value ) : byte[]
GetBytes ( float value ) : byte[]
GetBytes ( int value ) : byte[]
GetBytes ( long value ) : byte[]
GetBytes ( short value ) : byte[]
GetBytesBE ( bool value ) : byte[]
GetBytesBE ( char value ) : byte[]
GetBytesBE ( double value ) : byte[]
GetBytesBE ( float value ) : byte[]
GetBytesBE ( int value ) : byte[]
GetBytesBE ( long value ) : byte[]
GetBytesBE ( short value ) : byte[]
GetBytesLE ( bool value ) : byte[]
GetBytesLE ( char value ) : byte[]
GetBytesLE ( double value ) : byte[]
GetBytesLE ( float value ) : byte[]
GetBytesLE ( int value ) : byte[]
GetBytesLE ( long value ) : byte[]
GetBytesLE ( short value ) : byte[]
GetBytesNative ( bool value ) : byte[]
GetBytesNative ( char value ) : byte[]
GetBytesNative ( double value ) : byte[]
GetBytesNative ( float value ) : byte[]
GetBytesNative ( int value ) : byte[]
GetBytesNative ( long value ) : byte[]
GetBytesNative ( short value ) : byte[]
GetDouble ( byte data, int index ) : double
GetFloat ( byte data, int index ) : float
GetInt16 ( byte data, int index ) : short
GetInt32 ( byte data, int index ) : int
GetInt64 ( byte data, int index ) : long
Int16FromBE ( byte data, int index ) : short
Int16FromLE ( byte data, int index ) : short
Int16FromNative ( byte data, int index ) : short
Int32FromBE ( byte data, int index ) : int
Int32FromLE ( byte data, int index ) : int
Int32FromNative ( byte data, int index ) : int
Int64FromBE ( byte data, int index ) : long
Int64FromLE ( byte data, int index ) : long
Int64FromNative ( byte data, int index ) : long
Pack ( string description ) : byte[]
PackEnumerable ( string description, IEnumerable args ) : byte[]
PutBytes ( byte dest, int destIdx, double value ) : void
PutBytes ( byte dest, int destIdx, float value ) : void
PutBytes ( byte dest, int destIdx, int value ) : void
PutBytes ( byte dest, int destIdx, long value ) : void
PutBytes ( byte dest, int destIdx, short value ) : void
UInt16FromBE ( byte data, int index ) : ushort
UInt16FromLE ( byte data, int index ) : ushort
UInt16FromNative ( byte data, int index ) : ushort
UInt32FromBE ( byte data, int index ) : uint
UInt32FromLE ( byte data, int index ) : uint
UInt32FromNative ( byte data, int index ) : uint
UInt64FromBE ( byte data, int index ) : ulong
UInt64FromLE ( byte data, int index ) : ulong
UInt64FromNative ( byte data, int index ) : ulong
Unpack ( string description, byte buffer, int startIndex ) : IList

Private Methods

Method Description
Align ( int current, int align ) : int
Check ( byte dest, int destIdx, int size ) : void
GetBytes ( uint value ) : byte[]
GetBytes ( ulong value ) : byte[]
GetBytes ( ushort value ) : byte[]
GetBytesBE ( uint value ) : byte[]
GetBytesBE ( ulong value ) : byte[]
GetBytesBE ( ushort value ) : byte[]
GetBytesLE ( uint value ) : byte[]
GetBytesLE ( ulong value ) : byte[]
GetBytesLE ( ushort value ) : byte[]
GetBytesNative ( uint value ) : byte[]
GetBytesNative ( ulong value ) : byte[]
GetBytesNative ( ushort value ) : byte[]
GetBytesPtr ( byte ptr, int count ) : byte[]
GetBytesSwap ( bool swap, byte ptr, int count ) : byte[]
GetUInt16 ( byte data, int index ) : ushort
GetUInt32 ( byte data, int index ) : uint
GetUInt64 ( byte data, int index ) : ulong
PackOne ( PackContext b, object oarg ) : bool
Prepare ( byte buffer, int &idx, int size, bool &align ) : bool
PutBytes ( byte dest, int destIdx, uint value ) : void
PutBytes ( byte dest, int destIdx, ulong value ) : void
PutBytes ( byte dest, int destIdx, ushort value ) : void
PutBytesBE ( byte dest, byte src, int count ) : void
PutBytesLE ( byte dest, byte src, int count ) : void
PutBytesNative ( byte dest, byte src, int count ) : void

Method Details

DoubleFromBE() static public method

static public DoubleFromBE ( byte data, int index ) : double
data byte
index int
return double

DoubleFromLE() static public method

static public DoubleFromLE ( byte data, int index ) : double
data byte
index int
return double

DoubleFromNative() static public method

static public DoubleFromNative ( byte data, int index ) : double
data byte
index int
return double

FloatFromBE() static public method

static public FloatFromBE ( byte data, int index ) : float
data byte
index int
return float

FloatFromLE() static public method

static public FloatFromLE ( byte data, int index ) : float
data byte
index int
return float

FloatFromNative() static public method

static public FloatFromNative ( byte data, int index ) : float
data byte
index int
return float

GetBytes() public method

public GetBytes ( double value ) : byte[]
value double
return byte[]

GetBytes() public method

public GetBytes ( float value ) : byte[]
value float
return byte[]

GetBytes() public method

public GetBytes ( int value ) : byte[]
value int
return byte[]

GetBytes() public method

public GetBytes ( long value ) : byte[]
value long
return byte[]

GetBytes() public method

public GetBytes ( short value ) : byte[]
value short
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( bool value ) : byte[]
value bool
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( char value ) : byte[]
value char
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( double value ) : byte[]
value double
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( float value ) : byte[]
value float
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( int value ) : byte[]
value int
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( long value ) : byte[]
value long
return byte[]

GetBytesBE() public static method

public static GetBytesBE ( short value ) : byte[]
value short
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( bool value ) : byte[]
value bool
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( char value ) : byte[]
value char
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( double value ) : byte[]
value double
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( float value ) : byte[]
value float
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( int value ) : byte[]
value int
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( long value ) : byte[]
value long
return byte[]

GetBytesLE() public static method

public static GetBytesLE ( short value ) : byte[]
value short
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( bool value ) : byte[]
value bool
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( char value ) : byte[]
value char
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( double value ) : byte[]
value double
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( float value ) : byte[]
value float
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( int value ) : byte[]
value int
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( long value ) : byte[]
value long
return byte[]

GetBytesNative() public static method

public static GetBytesNative ( short value ) : byte[]
value short
return byte[]

GetDouble() public abstract method

public abstract GetDouble ( byte data, int index ) : double
data byte
index int
return double

GetFloat() public abstract method

public abstract GetFloat ( byte data, int index ) : float
data byte
index int
return float

GetInt16() public abstract method

public abstract GetInt16 ( byte data, int index ) : short
data byte
index int
return short

GetInt32() public abstract method

public abstract GetInt32 ( byte data, int index ) : int
data byte
index int
return int

GetInt64() public abstract method

public abstract GetInt64 ( byte data, int index ) : long
data byte
index int
return long

Int16FromBE() static public method

static public Int16FromBE ( byte data, int index ) : short
data byte
index int
return short

Int16FromLE() static public method

static public Int16FromLE ( byte data, int index ) : short
data byte
index int
return short

Int16FromNative() static public method

static public Int16FromNative ( byte data, int index ) : short
data byte
index int
return short

Int32FromBE() static public method

static public Int32FromBE ( byte data, int index ) : int
data byte
index int
return int

Int32FromLE() static public method

static public Int32FromLE ( byte data, int index ) : int
data byte
index int
return int

Int32FromNative() static public method

static public Int32FromNative ( byte data, int index ) : int
data byte
index int
return int

Int64FromBE() static public method

static public Int64FromBE ( byte data, int index ) : long
data byte
index int
return long

Int64FromLE() static public method

static public Int64FromLE ( byte data, int index ) : long
data byte
index int
return long

Int64FromNative() static public method

static public Int64FromNative ( byte data, int index ) : long
data byte
index int
return long

Pack() static public method

static public Pack ( string description ) : byte[]
description string
return byte[]

PackEnumerable() static public method

static public PackEnumerable ( string description, IEnumerable args ) : byte[]
description string
args IEnumerable
return byte[]

PutBytes() public abstract method

public abstract PutBytes ( byte dest, int destIdx, double value ) : void
dest byte
destIdx int
value double
return void

PutBytes() public abstract method

public abstract PutBytes ( byte dest, int destIdx, float value ) : void
dest byte
destIdx int
value float
return void

PutBytes() public abstract method

public abstract PutBytes ( byte dest, int destIdx, int value ) : void
dest byte
destIdx int
value int
return void

PutBytes() public abstract method

public abstract PutBytes ( byte dest, int destIdx, long value ) : void
dest byte
destIdx int
value long
return void

PutBytes() public abstract method

public abstract PutBytes ( byte dest, int destIdx, short value ) : void
dest byte
destIdx int
value short
return void

UInt16FromBE() static public method

static public UInt16FromBE ( byte data, int index ) : ushort
data byte
index int
return ushort

UInt16FromLE() static public method

static public UInt16FromLE ( byte data, int index ) : ushort
data byte
index int
return ushort

UInt16FromNative() static public method

static public UInt16FromNative ( byte data, int index ) : ushort
data byte
index int
return ushort

UInt32FromBE() static public method

static public UInt32FromBE ( byte data, int index ) : uint
data byte
index int
return uint

UInt32FromLE() static public method

static public UInt32FromLE ( byte data, int index ) : uint
data byte
index int
return uint

UInt32FromNative() static public method

static public UInt32FromNative ( byte data, int index ) : uint
data byte
index int
return uint

UInt64FromBE() static public method

static public UInt64FromBE ( byte data, int index ) : ulong
data byte
index int
return ulong

UInt64FromLE() static public method

static public UInt64FromLE ( byte data, int index ) : ulong
data byte
index int
return ulong

UInt64FromNative() static public method

static public UInt64FromNative ( byte data, int index ) : ulong
data byte
index int
return ulong

Unpack() static public method

static public Unpack ( string description, byte buffer, int startIndex ) : IList
description string
buffer byte
startIndex int
return IList

Property Details

IsLittleEndian public_oe static_oe property

public static bool IsLittleEndian
return bool