C# Class FsControl.BaseLib.BitConverter

Afficher le fichier Open project: gmpl/FsControl

Méthodes publiques

Méthode Description
DoubleToInt64Bits ( double value ) : long
GetBytes ( bool value ) : byte[]
GetBytes ( char value, bool isLittleEndian ) : byte[]
GetBytes ( double value, bool isLittleEndian ) : byte[]
GetBytes ( float value, bool isLittleEndian ) : byte[]
GetBytes ( int value, bool isLittleEndian ) : byte[]
GetBytes ( long value, bool isLittleEndian ) : byte[]
GetBytes ( short value, bool isLittleEndian ) : byte[]
GetBytes ( uint value, bool isLittleEndian ) : byte[]
GetBytes ( ulong value, bool isLittleEndian ) : byte[]
GetBytes ( ushort value, bool isLittleEndian ) : byte[]
Int64BitsToDouble ( long value ) : double
ToBoolean ( byte value, int startIndex ) : bool
ToChar ( byte value, int startIndex, bool isLittleEndian ) : char
ToDouble ( byte value, int startIndex, bool isLittleEndian ) : double
ToInt16 ( byte value, int startIndex, bool isLittleEndian ) : short
ToInt32 ( byte value, int startIndex, bool isLittleEndian ) : int
ToInt64 ( byte value, int startIndex, bool isLittleEndian ) : long
ToSingle ( byte value, int startIndex, bool isLittleEndian ) : float
ToString ( byte value ) : String
ToString ( byte value, int startIndex ) : String
ToString ( byte value, int startIndex, int length ) : String
ToUInt16 ( byte value, int startIndex, bool isLittleEndian ) : ushort
ToUInt32 ( byte value, int startIndex, bool isLittleEndian ) : uint
ToUInt64 ( byte value, int startIndex, bool isLittleEndian ) : ulong

Private Methods

Méthode Description
GetHexValue ( int i ) : char

Method Details

DoubleToInt64Bits() public static méthode

public static DoubleToInt64Bits ( double value ) : long
value double
Résultat long

GetBytes() public static méthode

public static GetBytes ( bool value ) : byte[]
value bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( char value, bool isLittleEndian ) : byte[]
value char
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( double value, bool isLittleEndian ) : byte[]
value double
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( float value, bool isLittleEndian ) : byte[]
value float
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( int value, bool isLittleEndian ) : byte[]
value int
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( long value, bool isLittleEndian ) : byte[]
value long
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( short value, bool isLittleEndian ) : byte[]
value short
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( uint value, bool isLittleEndian ) : byte[]
value uint
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( ulong value, bool isLittleEndian ) : byte[]
value ulong
isLittleEndian bool
Résultat byte[]

GetBytes() public static méthode

public static GetBytes ( ushort value, bool isLittleEndian ) : byte[]
value ushort
isLittleEndian bool
Résultat byte[]

Int64BitsToDouble() public static méthode

public static Int64BitsToDouble ( long value ) : double
value long
Résultat double

ToBoolean() public static méthode

public static ToBoolean ( byte value, int startIndex ) : bool
value byte
startIndex int
Résultat bool

ToChar() public static méthode

public static ToChar ( byte value, int startIndex, bool isLittleEndian ) : char
value byte
startIndex int
isLittleEndian bool
Résultat char

ToDouble() public static méthode

public static ToDouble ( byte value, int startIndex, bool isLittleEndian ) : double
value byte
startIndex int
isLittleEndian bool
Résultat double

ToInt16() public static méthode

public static ToInt16 ( byte value, int startIndex, bool isLittleEndian ) : short
value byte
startIndex int
isLittleEndian bool
Résultat short

ToInt32() public static méthode

public static ToInt32 ( byte value, int startIndex, bool isLittleEndian ) : int
value byte
startIndex int
isLittleEndian bool
Résultat int

ToInt64() public static méthode

public static ToInt64 ( byte value, int startIndex, bool isLittleEndian ) : long
value byte
startIndex int
isLittleEndian bool
Résultat long

ToSingle() public static méthode

public static ToSingle ( byte value, int startIndex, bool isLittleEndian ) : float
value byte
startIndex int
isLittleEndian bool
Résultat float

ToString() public static méthode

public static ToString ( byte value ) : String
value byte
Résultat String

ToString() public static méthode

public static ToString ( byte value, int startIndex ) : String
value byte
startIndex int
Résultat String

ToString() public static méthode

public static ToString ( byte value, int startIndex, int length ) : String
value byte
startIndex int
length int
Résultat String

ToUInt16() public static méthode

public static ToUInt16 ( byte value, int startIndex, bool isLittleEndian ) : ushort
value byte
startIndex int
isLittleEndian bool
Résultat ushort

ToUInt32() public static méthode

public static ToUInt32 ( byte value, int startIndex, bool isLittleEndian ) : uint
value byte
startIndex int
isLittleEndian bool
Résultat uint

ToUInt64() public static méthode

public static ToUInt64 ( byte value, int startIndex, bool isLittleEndian ) : ulong
value byte
startIndex int
isLittleEndian bool
Résultat ulong