C# Class MaCRo.Tools.BitConverter

Mostra file Open project: AlexAlbala/MaCRo

Public Methods

Method Description
GetBytes ( int value ) : byte[]
GetBytes ( uint value ) : byte[]
GetBytes ( ushort value ) : byte[]
ToInt32 ( byte value, int startIndex ) : int
ToUInt16 ( byte value, int startIndex ) : ushort
ToUInt32 ( byte value, int startIndex ) : uint

Method Details

GetBytes() public static method

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

GetBytes() public static method

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

GetBytes() public static method

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

ToInt32() public static method

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

ToUInt16() public static method

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

ToUInt32() public static method

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