C# Class Catfood.Shapefile.EndianBitConverter

BitConverter methods that allow a different source byte order (only a subset of BitConverter)
Mostrar archivo Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method Description
ToDouble ( byte value, int startIndex, ProvidedOrder order ) : double

Returns a double from eight bytes of a byte array

ToInt32 ( byte value, int startIndex, ProvidedOrder order ) : int

Returns an integer from four bytes of a byte array

Method Details

ToDouble() public static method

Returns a double from eight bytes of a byte array
Thrown if value is null Thrown if startIndex is invalid
public static ToDouble ( byte value, int startIndex, ProvidedOrder order ) : double
value byte bytes to convert
startIndex int start index in value
order ProvidedOrder byte order of value
return double

ToInt32() public static method

Returns an integer from four bytes of a byte array
Thrown if value is null Thrown if startIndex is invalid
public static ToInt32 ( byte value, int startIndex, ProvidedOrder order ) : int
value byte bytes to convert
startIndex int start index in value
order ProvidedOrder byte order of value
return int