A class to access fields of various primitive types embedded at arbitrary indexes within a byte array. Used by EEPROM.
More...
|
| static ushort | shortAsUshort (short n) |
| | Return the UInt16 with the same internal bit-structure as a given Int16.
|
| |
| static bool | toBool (byte[] buf, int index) |
| |
| static float | toFloat (byte[] buf, int index) |
| |
| static short | toInt16 (byte[] buf, int index) |
| |
| static int | toInt32 (byte[] buf, int index) |
| |
| static String | toString (byte[] buf, int index=0, int len=0) |
| |
| static ushort | toUInt16 (byte[] buf, int index) |
| |
| static uint | toUInt32 (byte[] buf, int index) |
| |
| static byte | toUInt8 (byte[] buf, int index) |
| |
| static bool | writeBool (bool value, byte[] buf, int index) |
| |
| static bool | writeByte (byte value, byte[] buf, int index) |
| |
| static bool | writeFloat (float value, byte[] buf, int index) |
| |
| static bool | writeInt16 (Int16 value, byte[] buf, int index) |
| |
| static bool | writeString (string value, byte[] buf, int index, int maxLen) |
| |
| static bool | writeUInt16 (UInt16 value, byte[] buf, int index) |
| |
| static bool | writeUInt32 (UInt32 value, byte[] buf, int index) |
| |
A class to access fields of various primitive types embedded at arbitrary indexes within a byte array. Used by EEPROM.
Differs from Unpack in that these functions all take an offset, don't have to perform a null-check and supports different types. Also, supports write as well as read.