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
 DoubleToInt64Bits Converts the bit representation of a Double to a Currency.  
 GetBytes Returns a byte array representation of the datatype value.  
 Int64BitsToDouble Converts the bit representation of a Currencty to a Double.  
 ToBoolean Converts an array of bytes to a Boolean value.  
 ToCurrency Converts an array of bytes to a Currency value.  
 ToDate Converts an array of bytes to a Date value.  
 ToDecimal Converts an array of bytes do a Variant Decimal value.  
 ToDouble Converts an array of bytes to a Double value.  
 ToInteger Converts an array of bytes to an Integer value.  
 ToLong Converts an array of bytes to a Long value.  
 ToSingle Converts an array of bytes to a Single value.  
 ToString Converts an array of bytes to a string of hexidecimal notations.