Difference between revisions of "RawData"
Jump to navigation
Jump to search
(Created page with "The <c>RawData</c> class in Mini Micro represents a buffer of raw bytes. Interpretation of these bytes is entirely up to the programmer. === Properties === {| class="wik...") |
m |
||
| Line 6: | Line 6: | ||
! Property Name !! Type !! Default Value !! Meaning | ! Property Name !! Type !! Default Value !! Meaning | ||
|- | |- | ||
| − | | | + | | <c>littleEndian</c> || number (boolean) || [[true]] || whether multi-byte values are stored with least significant byte first |
|} | |} | ||
| Line 16: | Line 16: | ||
! Method !! Description | ! Method !! Description | ||
|- | |- | ||
| − | | | + | | <c>len</c> || returns the length of the raw data buffer, in bytes |
|- | |- | ||
| − | | | + | | <c>[[RawData.resize|resize]](bytes=32)</c> || change the size of the raw data buffer |
|} | |} | ||
Revision as of 21:34, 26 March 2020
The RawData class in Mini Micro represents a buffer of raw bytes. Interpretation of these bytes is entirely up to the programmer.
Properties
| Property Name | Type | Default Value | Meaning |
|---|---|---|---|
littleEndian |
number (boolean) | true | whether multi-byte values are stored with least significant byte first |
Methods
| Method | Description |
|---|---|
len |
returns the length of the raw data buffer, in bytes |
resize(bytes=32) |
change the size of the raw data buffer |