C# Class Gammtek.Conduit.IO.ByteOrderConverter

Show file Open project: ME3Explorer/ME3Explorer

Public Methods

Method Description
CopyBytes ( bool value, byte buffer, int index ) : void
CopyBytes ( char value, byte buffer, int index ) : void
CopyBytes ( decimal value, byte buffer, int index ) : void
CopyBytes ( double value, byte buffer, int index ) : void
CopyBytes ( float value, byte buffer, int index ) : void
CopyBytes ( int value, byte buffer, int index ) : void
CopyBytes ( long value, byte buffer, int index ) : void
CopyBytes ( short value, byte buffer, int index ) : void
CopyBytes ( uint value, byte buffer, int index ) : void
CopyBytes ( ulong value, byte buffer, int index ) : void
CopyBytes ( ushort value, byte buffer, int index ) : void
DoubleToInt64Bits ( double value ) : long
GetBytes ( bool value ) : byte[]
GetBytes ( char value ) : byte[]
GetBytes ( decimal value ) : byte[]
GetBytes ( double value ) : byte[]
GetBytes ( float value ) : byte[]
GetBytes ( int value ) : byte[]
GetBytes ( long value ) : byte[]
GetBytes ( short value ) : byte[]
GetBytes ( uint value ) : byte[]
GetBytes ( ulong value ) : byte[]
GetBytes ( ushort value ) : byte[]
Int32BitsToSingle ( int value ) : float
Int64BitsToDouble ( long value ) : double
SingleToInt32Bits ( float value ) : int
ToBoolean ( byte value, int startIndex ) : bool
ToChar ( byte value, int startIndex ) : char
ToDecimal ( byte value, int startIndex ) : decimal
ToDouble ( byte value, int startIndex ) : double
ToInt16 ( byte value, int startIndex ) : short
ToInt32 ( byte value, int startIndex ) : int
ToInt64 ( byte value, int startIndex ) : long
ToSingle ( byte value, int startIndex ) : float
ToString ( byte value ) : string
ToString ( byte value, int startIndex ) : string
ToString ( byte value, int startIndex, int length ) : string
ToUInt16 ( byte value, int startIndex ) : ushort
ToUInt32 ( byte value, int startIndex ) : uint
ToUInt64 ( byte value, int startIndex ) : ulong

Private Methods

Method Description
ByteOrderConverter ( ByteOrder byteOrder = ByteOrder.LittleEndian ) : System
CheckedFromBytes ( byte value, int startIndex, int bytesToConvert ) : long
CopyBytes ( long value, int bytes, byte buffer, int index ) : void
FromBytes ( byte buffer, int startIndex, int bytesToConvert ) : long
GetBytes ( long value, int bytes ) : byte[]

Method Details

CopyBytes() public method

public CopyBytes ( bool value, byte buffer, int index ) : void
value bool
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( char value, byte buffer, int index ) : void
value char
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( decimal value, byte buffer, int index ) : void
value decimal
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( double value, byte buffer, int index ) : void
value double
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( float value, byte buffer, int index ) : void
value float
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( int value, byte buffer, int index ) : void
value int
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( long value, byte buffer, int index ) : void
value long
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( short value, byte buffer, int index ) : void
value short
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( uint value, byte buffer, int index ) : void
value uint
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( ulong value, byte buffer, int index ) : void
value ulong
buffer byte
index int
return void

CopyBytes() public method

public CopyBytes ( ushort value, byte buffer, int index ) : void
value ushort
buffer byte
index int
return void

DoubleToInt64Bits() public method

public DoubleToInt64Bits ( double value ) : long
value double
return long

GetBytes() public method

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

GetBytes() public method

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

GetBytes() public method

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

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[]

GetBytes() public method

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

GetBytes() public method

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

GetBytes() public method

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

Int32BitsToSingle() public method

public Int32BitsToSingle ( int value ) : float
value int
return float

Int64BitsToDouble() public method

public Int64BitsToDouble ( long value ) : double
value long
return double

SingleToInt32Bits() public method

public SingleToInt32Bits ( float value ) : int
value float
return int

ToBoolean() public method

public ToBoolean ( byte value, int startIndex ) : bool
value byte
startIndex int
return bool

ToChar() public method

public ToChar ( byte value, int startIndex ) : char
value byte
startIndex int
return char

ToDecimal() public method

public ToDecimal ( byte value, int startIndex ) : decimal
value byte
startIndex int
return decimal

ToDouble() public method

public ToDouble ( byte value, int startIndex ) : double
value byte
startIndex int
return double

ToInt16() public method

public ToInt16 ( byte value, int startIndex ) : short
value byte
startIndex int
return short

ToInt32() public method

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

ToInt64() public method

public ToInt64 ( byte value, int startIndex ) : long
value byte
startIndex int
return long

ToSingle() public method

public ToSingle ( byte value, int startIndex ) : float
value byte
startIndex int
return float

ToString() public method

public ToString ( byte value ) : string
value byte
return string

ToString() public method

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

ToString() public method

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

ToUInt16() public method

public ToUInt16 ( byte value, int startIndex ) : ushort
value byte
startIndex int
return ushort

ToUInt32() public method

public ToUInt32 ( byte value, int startIndex ) : uint
value byte
startIndex int
return uint

ToUInt64() public method

public ToUInt64 ( byte value, int startIndex ) : ulong
value byte
startIndex int
return ulong