C# Class EndianUtil, UnityFramework

Mostrar archivo Open project: meta-42/uEasyKit Class Usage Examples

Public Methods

Method Description
GetBigEndian ( Double value ) : Double
GetBigEndian ( Int32 value ) : Int32
GetBigEndian ( System.Int64 value ) : System.Int64
GetBigEndian ( UInt16 value ) : UInt16
GetBigEndian ( UInt32 value ) : UInt32
GetBigEndian ( float value ) : float
GetLittleEndian ( Double value ) : Double
GetLittleEndian ( Int32 value ) : Int32
GetLittleEndian ( UInt16 value ) : UInt16
GetLittleEndian ( UInt32 value ) : UInt32

Private Methods

Method Description
swapByteOrder ( Double value ) : Double
swapByteOrder ( Int32 value ) : Int32
swapByteOrder ( System.Int64 value ) : System.Int64
swapByteOrder ( UInt16 value ) : UInt16
swapByteOrder ( UInt32 value ) : UInt32

Method Details

GetBigEndian() public static method

public static GetBigEndian ( Double value ) : Double
value Double
return Double

GetBigEndian() public static method

public static GetBigEndian ( Int32 value ) : Int32
value System.Int32
return System.Int32

GetBigEndian() public static method

public static GetBigEndian ( System.Int64 value ) : System.Int64
value System.Int64
return System.Int64

GetBigEndian() public static method

public static GetBigEndian ( UInt16 value ) : UInt16
value System.UInt16
return System.UInt16

GetBigEndian() public static method

public static GetBigEndian ( UInt32 value ) : UInt32
value System.UInt32
return System.UInt32

GetBigEndian() public static method

public static GetBigEndian ( float value ) : float
value float
return float

GetLittleEndian() public static method

public static GetLittleEndian ( Double value ) : Double
value Double
return Double

GetLittleEndian() public static method

public static GetLittleEndian ( Int32 value ) : Int32
value System.Int32
return System.Int32

GetLittleEndian() public static method

public static GetLittleEndian ( UInt16 value ) : UInt16
value System.UInt16
return System.UInt16

GetLittleEndian() public static method

public static GetLittleEndian ( UInt32 value ) : UInt32
value System.UInt32
return System.UInt32