[bytes->import32Bits] appends the low 32 bits (4 bytes) of an integer onto the end of the byte stream.
bytes->import32Bits(1)
This example imports the 4 bytes from the number 42 and shows the value encoded as hexadecimal.
Code
bytes->import32Bits(42) & encodeHex
Result
2A000000
The integer's bytes are imported using the endianess of the host machine. Look at [integer->hostToNet32] and [integer->netToHost32] to perform byte swapping.
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments