BitConverter

BitConverter


Provides a means to convert value datatypes to and from arrays of bytes.


Remarks

The BitConverter class cannot be instantiated. The methods are available through the class name itself.

 Dim b() As Byte
 b = BitConverter.GetBytes(&H12345678)
 

See Also

Project VBCorLib Overview

Public:

Methods:

NameDescription
 DoubleToInt64BitsConverts the bit representation of a Double to a Currency. 
 GetBytesReturns a byte array representation of the datatype value. 
 Int64BitsToDoubleConverts the bit representation of a Currencty to a Double. 
 ToBooleanConverts an array of bytes to a Boolean value. 
 ToCurrencyConverts an array of bytes to a Currency value. 
 ToDateConverts an array of bytes to a Date value. 
 ToDecimalConverts an array of bytes do a Variant Decimal value. 
 ToDoubleConverts an array of bytes to a Double value. 
 ToIntegerConverts an array of bytes to an Integer value. 
 ToLongConverts an array of bytes to a Long value. 
 ToSingleConverts an array of bytes to a Single value. 
 ToStringConverts an array of bytes to a string of hexidecimal notations.