C# Class Catfood.Shapefile.EndianBitConverter

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

Méthodes publiques

Méthode 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 méthode

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
Résultat double

ToInt32() public static méthode

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
Résultat int