Convert a string containing a 32-bit unsigned integer to a double word.
XSharp.Core (in XSharp.Core.dll) Version: 2.7
Syntax Request Example
cUnsignedInt AS STRING
) AS DWORD
public static uint Bin2DW(
- Type: String
A 32-bit unsigned integer represented as a string — least significant byte first. Only the first 4 bytes are used by the function; all others are ignored.
Bin2DW() is a conversion function that converts the first 4 bytes of a string to a double word. Typical applications include reading foreign file types in their native format then saving, reading, decrypting, and transmitting numeric data in their compressed binary form instead of in strings.
Its inverse is DW2Bin().
This example is passed 4 ASCII characters and returns a number that is 10 digits long: