User Rating: 0 / 5

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

U2Bin()

 

Convert Harbour numeric into unsigned long encoded bytes

 

Syntax

 

U2Bin( <nNumber> ) --> cBuffer

 

Argument(s)

 

<nNumber> is a numeric value to convert (decimal digits are ignored).

 

Returns

 

U2Bin() return four bytes character string that contain 32 bit encoded unsigned long integer (least significant byte first).

 

Description

 

U2Bin() is one of the low level binary conversion functions, those functions convert between Harbour numeric and a character representation of numeric value. U2Bin() take a numeric integer value and convert it into four bytes of encoded 32 bit unsigned long integer.

 

You might ask what is the need for such functions, well, first of all it allow you to read/write information from/to a binary file (like extracting information from DBF header), it is also a useful way to share information from source other than Harbour (C for instance).

 

U2Bin() is the opposite of Bin2U()

 

Status

 

Ready

 

Compliance

 

XPP

 

File(s)

 

Library is core

 

See also

Bin2I(), Bin2L(), Bin2U(), Bin2W(), I2Bin(), L2Bin(), W2Bin(), Word(), FWrite()