NBitConverter Class Members
In This Topic
The following tables list the members exposed by NBitConverter.
Public Methods
| Name | Description |
| DoubleToInt64Bits | Converts the bits of the given double value to a 64-bit integer. |
| GetBytesBE | Overloaded. Gets the bytes of the given value in big endian byte order (i.e. the most significant byte comes first). |
| GetBytesLE | Overloaded. Gets the bytes of the given value in little endian byte order (i.e. the most insignificant byte comes first). |
| GetReversedArray | Copies the given bytes, reverses their order (the last comes first) and returns the resulting byte array. |
| Int64BitsToDouble | Converts the bits of the given 64-bit integer to a double. |
| ReverseArray16BitWord | Overloaded. Reverses the bytes in the specified portion of the given array swapping every byte with odd index with the one after it. For example the byte array {12, 67, 31, 204} will be modified to {67, 12, 204, 31}. |
| ToDoubleBE | Gets the bytes of the given value in big endian byte order (i.e. the most significant byte comes first). |
| ToDoubleLE | Gets the bytes of the given value in little endian byte order (i.e. the most insignificant byte comes first). |
| ToInt16BE | Converts 2 bytes from the given big endian byte array, starting from the specified index, to a 16-bit integer. |
| ToInt16LE | Converts 2 bytes from the given little endian byte array, starting from the specified index, to a 16-bit integer. |
| ToInt32BE | Converts 4 bytes from the given big endian byte array, starting from the specified index, to a 32-bit integer. |
| ToInt32LE | Converts 4 bytes from the given little endian byte array, starting from the specified index, to a 32-bit integer. |
| ToInt64BE | Converts 8 bytes from the given big endian byte array, starting from the specified index, to a 64-bit integer. |
| ToInt64LE | Converts 8 bytes from the given little endian byte array, starting from the specified index, to a 64-bit integer. |
| ToSingleBE | Gets the bytes of the given value in big endian byte order (i.e. the most significant byte comes first). |
| ToSingleLE | Gets the bytes of the given value in little endian byte order (i.e. the most insignificant byte comes first). |
| ToUInt16BE | Converts 2 bytes from the given Bid Endian byte array, starting from the specified index, to a 16-bit unsigned integer. |
| ToUInt16LE | Converts 2 bytes from the given little endian byte array, starting from the specified index, to a 16-bit unsigned integer. |
| ToUInt32BE | Converts 4 bytes from the given big endian byte array, starting from the specified index, to a 32-bit unsigned integer. |
| ToUInt32LE | Converts 4 bytes from the given little endian byte array, starting from the specified index, to a 32-bit unsignet integer. |
| ToUInt64BE | Converts 8 bytes from the given big endian byte array, starting from the specified index, to a 64-bit unsigned integer. |
| ToUInt64LE | Converts 8 bytes from the given little endian byte array, starting from the specified index, to a 64-bit integer. |
Top
See Also