Lasso Soft Inc. > Home

[ bytes->import32bits ]

Method

[bytes->import32Bits] appends the low 32 bits (4 bytes) of an integer onto the end of the byte stream.

  • Syntax
bytes->import32Bits(1)
Examples
  • Intermediate

 

This example imports the 4 bytes from the number 42 and shows the value encoded as hexadecimal.

Code

bytes->import32Bits(42) & encodeHex

Result

2A000000
Resources
  • Tips

 

The integer's bytes are imported using the endianess of the host machine. Look at [integer->hostToNet32] and [integer->netToHost32] to perform byte swapping.

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft