Lasso Soft Inc. > Home

[ bytes->import8bits ]

Method

[bytes->import8Bits] appends 1 byte of an integer onto the end of the byte stream. The integer parameter is converted into an unsigned char and then imported. Therefore, the only possible range for that import is 0-255.

  • Syntax
bytes->import8Bits(3)
Examples
  • Intermediate

This example imports 1 byte into a bytes object and prints the value in hexadecimal.

Code

bytes->import8Bits(-230) & encodeHex

Result

1A

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