c-struct-js
UMD module for DataView extension inspired by C structs
Usage
npm
Install via $ npm i c-struct-js
CommonJS
const Struct =
ES6 import (using babel)
AMD requireJS
unpkg
Or include via
UMD global
Classes
Objects
- types :
object
Namespace of predefined Struct classes.
DataView
Struct ⇐ Kind: global class
Extends: DataView
- Struct ⇐
DataView
- new Struct(buffer, [byteOffset])
- static
- .extend(...descriptors) ⇒
constructor
- .types :
types
- .byteLength :
number
- .from(value, [byteOffset]) ⇒
Struct
- .isStruct(value) ⇒
boolean
- .union(...Classes) ⇒
constructor
- .extend(...descriptors) ⇒
- instance
new Struct(buffer, [byteOffset])
Param | Type | Default | Description |
---|---|---|---|
buffer | ArrayBuffer |
An instance of ArrayBuffer to view. | |
[byteOffset] | number |
0 |
Byte offset at which to view ArrayBuffer. |
constructor
Struct.extend(...descriptors) ⇒ Creates a class that extends Struct with members defined by arguments.
Kind: static method of Struct
Throws:
Param | Type | Description |
---|---|---|
...descriptors | Object |
Instance member definitions for extended class. |
descriptors[].name | string |
The member name. |
descriptors[].type | string | Struct |
The member type. Accepts strings 'Int8', 'Uint8', 'Int16', 'Uint16', 'Float32', 'Int32', 'Uint32', 'Float64', 'String', or any constructor that extends Struct. |
[descriptors[].option] | * |
An optional argument to append to the accessor methods of the member. |
[descriptors[].byteLength] | number |
Determined using type by default. Required when type is 'String'. |
[descriptors[].byteOffset] | number |
Determined using order of descriptors by default. |
Example
const Struct = // Implementing RIFF-style chunk headersconst Word = Struct const Chunk = Struct { superRIFFbyteLength thischunkidword = 'RIFF' thischunksize = thisbyteLength - thischunkbyteLength // ... } let riff = let ab = riffchunkidlet buf = Buffer console
types
Struct.types : Namespace of predefined types.
Kind: static property of Struct
number
Struct.byteLength : Byte length of instances.
Kind: static property of Struct
Default: 0
Read only: true
Struct
Struct.from(value, [byteOffset]) ⇒ Creates an instance of Struct to view given value at byteOffset.
Kind: static method of Struct
Throws:
TypeError
value must be a valid ArrayBuffer or view.
Param | Type | Default | Description |
---|---|---|---|
value | ArrayBuffer | TypedArray |
A valid ArrayBuffer or TypedArray. | |
[byteOffset] | number |
0 |
Byte offset at which to view value. |
Example
// checking encoded size of WAV fileconst promisify = const fs = const read = const open = const close = // using Chunk from previous example// ... // bytes 36-44 contain SubChunk2 of WAV header
boolean
Struct.isStruct(value) ⇒ Validates constructors that implement Struct.
Kind: static method of Struct
Param | Type | Description |
---|---|---|
value | * |
A value to test. |
Example
console // trueconsole // trueconsole // false - doesn't implement Structconsole // false - is instance, not class
constructor
Struct.union(...Classes) ⇒ Creates a union class that extends Struct with members of all Classes.
Kind: static method of Struct
Throws:
TypeError
Union contains conflicting key.
Param | Type | Description |
---|---|---|
...Classes | constructor |
Classes that extend Struct. |
Example
// Getting surrogate pairs of utf16le encodingconst UTF16LE = Struct const UTF16Pair = Struct const UTF16 = Struct let utf16 = UTF16byteLength utf16code = '€' // € ac 20console
string
struct.getString(byteOffset, byteLength, [encoding]) ⇒ Gets string with byteLength and encoding from viewed ArrayBuffer at byteOffset. Depending on data and encoding, returned string may have different length than byteLength.
Kind: instance method of Struct
Throws:
TypeError
encoding must be a valid string encoding.
Param | Type | Default | Description |
---|---|---|---|
byteOffset | number |
Byte offset within ArrayBuffer of string to read. | |
byteLength | number |
Byte length within ArrayBuffer of string to read. | |
[encoding] | string |
"utf8" |
Encoding within ArrayBuffer of string to read. |
Example
// using utf16 from previous example// ... console // true
struct.setString(byteOffset, byteLength, value, [encoding])
Sets string with byteLength and encoding to viewed ArrayBuffer at byteOffset. Depending on byteLength and encoding, set string may be truncated or padded.
Kind: instance method of Struct
Throws:
TypeError
encoding must be a valid string encoding.
Param | Type | Default | Description |
---|---|---|---|
byteOffset | number |
Byte offset within ArrayBuffer of string to write. | |
byteLength | number |
Byte length within ArrayBuffer of string to write. | |
value | string |
String value to write to ArrayBuffer. | |
[encoding] | string |
"utf8" |
Encoding within ArrayBuffer of string to write. |
Example
// using utf16 from previous example// ... utf16 // $ 24 0console
struct.get()
Default member getter when accessed as a member of a parent Struct.
Kind: instance method of Struct
Example
// Better implementation for RIFF-style chunk headers return thisword thisword = string const Chunk = Struct // Other structs... { superarrayBuffer byteOffset thischunkid = 'RIFF' thischunksize = thisbyteLength - thischunkbyteLength // ... } let riff = let id = riffchunkid // 'RIFF' instead of instance of Wordconsole
struct.set(typedArray, [byteOffset])
Sets memory in ArrayBuffer starting at byteOffset with data from typedArray.
Kind: instance method of Struct
Param | Type | Default | Description |
---|---|---|---|
typedArray | TypedArray |
View of data to copy. | |
[byteOffset] | number |
0 |
Byte offset within ArrayBuffer at which to write. |
Example
// reading header of WAV file into instance of RIFF // using RIFF from previous example// ...let riff =
struct.next([constructor], [bytePadding])
Initializes the next chunk of the buffer as another instance of Struct.
Kind: instance method of Struct
Throws:
TypeError
constructor must implement Struct.
Param | Type | Default | Description |
---|---|---|---|
[constructor] | constructor |
this.constructor |
The Struct class with which to initialize. |
[bytePadding] | number |
0 |
Amount of bytes after the end of this to begin ArrayBuffer view. |
Example
// iterating through a large datasetconst readFile =
struct.prev([constructor], [bytePadding])
Initializes the previous chunk of the buffer as another instance of Struct.
Kind: instance method of Struct
Throws:
TypeError
constructor must implement Struct.
Param | Type | Default | Description |
---|---|---|---|
[constructor] | constructor |
this.constructor |
The Struct class with which to initialize. |
[bytePadding] | number |
0 |
Amount of bytes before the end of this to end ArrayBuffer view. |
Example
// accessing header of first data
object
types : Namespace of predefined Struct classes.
Kind: global namespace
- types :
object
- .Byte ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- static
- .Char ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .char :
String
- .get() ⇒
String
- .set(value)
- .char :
- static
- .Float32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32be :
number
- .get() ⇒
number
- .set(value)
- .float32be :
- static
- .Float32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32le :
number
- .get() ⇒
number
- .set(value)
- .float32le :
- static
- .Float64BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64be :
number
- .get() ⇒
number
- .set(value)
- .float64be :
- static
- .Float64LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64le :
number
- .get() ⇒
number
- .set(value)
- .float64le :
- static
- .Int16BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int16be :
number
- .get() ⇒
number
- .set(value)
- .int16be :
- static
- .Int16LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int16le :
number
- .get() ⇒
number
- .set(value)
- .int16le :
- static
- .Int32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int32be :
number
- .get() ⇒
number
- .set(value)
- .int32be :
- static
- .Int32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int32le :
number
- .get() ⇒
number
- .set(value)
- .int32le :
- static
- .Int8 ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int8 :
number
- .get() ⇒
number
- .set(value)
- .int8 :
- static
- .Long ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64be :
number
- .float64le :
number
- .float64be :
- static
- .Short ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- static
- .Uint16BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint16be :
number
- .get() ⇒
number
- .set(value)
- .uint16be :
- static
- .Uint16LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint16le :
number
- .get() ⇒
number
- .set(value)
- .uint16le :
- static
- .Uint32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint32be :
number
- .get() ⇒
number
- .set(value)
- .uint32be :
- static
- .Uint32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint32le :
number
- .get() ⇒
number
- .set(value)
- .uint32le :
- static
- .Uint8 ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint8 :
number
- .get() ⇒
number
- .set(value)
- .uint8 :
- static
- .Word ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32be :
number
- .float32le :
number
- .int32be :
number
- .int32le :
number
- .uint32be :
number
- .uint32le :
number
- .float32be :
- static
- .Byte ⇐
Struct
types.Byte ⇐ A union of all 1-byte predefined types.
Kind: static mixin of types
Extends: Struct
number
Byte.byteLength : Byte length of instances.
Kind: static property of Byte
Default: 1
Read only: true
String
byte.char : A single byte binary string character. Accepts any characters from the latin-1 block.
Kind: instance property of Byte
number
byte.int8 : An 8-bit signed integer.
Kind: instance property of Byte
number
byte.uint8 : An 8-bit unsigned integer.
Kind: instance property of Byte
Struct
types.Char ⇐ A predefined type for storing a binary-encoded string character.
Kind: static mixin of types
Extends: Struct
- .Char ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .char :
String
- .get() ⇒
String
- .set(value)
- .char :
- static
number
Char.byteLength : Byte length of instances.
Kind: static property of Char
Default: 1
Read only: true
String
char.char : A single byte binary string character. Accepts any characters from the latin-1 block.
Kind: instance property of Char
String
char.get() ⇒ Kind: instance method of Char
Returns: String
- char
char.set(value)
Kind: instance method of Char
Param | Type |
---|---|
value | String |
Struct
types.Float32BE ⇐ A predefined type for storing a 32-bit floating point number in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Float32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32be :
number
- .get() ⇒
number
- .set(value)
- .float32be :
- static
number
Float32BE.byteLength : Byte length of instances.
Kind: static property of Float32BE
Default: 4
Read only: true
number
float32BE.float32be : A 32-bit floating point number accessed in big-endian byte order.
Kind: instance property of Float32BE
See: IEEE 754 Single-precision floating-point format
number
float32BE.get() ⇒ Kind: instance method of Float32BE
Returns: number
- float32be
float32BE.set(value)
Kind: instance method of Float32BE
Param | Type |
---|---|
value | number |
Struct
types.Float32LE ⇐ A predefined type for storing a 32-bit floating point number in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Float32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32le :
number
- .get() ⇒
number
- .set(value)
- .float32le :
- static
number
Float32LE.byteLength : Byte length of instances.
Kind: static property of Float32LE
Default: 4
Read only: true
number
float32LE.float32le : A 32-bit floating point number accessed in big-endian byte order.
Kind: instance property of Float32LE
See: IEEE 754 Single-precision floating-point format
number
float32LE.get() ⇒ Kind: instance method of Float32LE
Returns: number
- float32le
float32LE.set(value)
Kind: instance method of Float32LE
Param | Type |
---|---|
value | number |
Struct
types.Float64BE ⇐ A predefined type for storing a 64-bit floating point number in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Float64BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64be :
number
- .get() ⇒
number
- .set(value)
- .float64be :
- static
number
Float64BE.byteLength : Byte length of instances.
Kind: static property of Float64BE
Default: 8
Read only: true
number
float64BE.float64be : A 64-bit floating point number accessed in big-endian byte order.
Kind: instance property of Float64BE
See: IEEE 754 Double-precision floating-point format
number
float64BE.get() ⇒ Kind: instance method of Float64BE
Returns: number
- float64be
float64BE.set(value)
Kind: instance method of Float64BE
Param | Type |
---|---|
value | number |
Struct
types.Float64LE ⇐ A predefined type for storing a 64-bit floating point number in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Float64LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64le :
number
- .get() ⇒
number
- .set(value)
- .float64le :
- static
number
Float64LE.byteLength : Byte length of instances.
Kind: static property of Float64LE
Default: 8
Read only: true
number
float64LE.float64le : A 64-bit floating point number accessed in little-endian byte order.
Kind: instance property of Float64LE
See: IEEE 754 Double-precision floating-point format
number
float64LE.get() ⇒ Kind: instance method of Float64LE
Returns: number
- float64le
float64LE.set(value)
Kind: instance method of Float64LE
Param | Type |
---|---|
value | number |
Struct
types.Int16BE ⇐ A predefined type for storing a 16-bit signed integer in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Int16BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int16be :
number
- .get() ⇒
number
- .set(value)
- .int16be :
- static
number
Int16BE.byteLength : Byte length of instances.
Kind: static property of Int16BE
Default: 2
Read only: true
number
int16BE.int16be : A 16-bit signed integer accessed in big-endian byte order.
Kind: instance property of Int16BE
number
int16BE.get() ⇒ Kind: instance method of Int16BE
Returns: number
- int16be
int16BE.set(value)
Kind: instance method of Int16BE
Param | Type |
---|---|
value | number |
Struct
types.Int16LE ⇐ A predefined type for storing a 16-bit signed integer in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Int16LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int16le :
number
- .get() ⇒
number
- .set(value)
- .int16le :
- static
number
Int16LE.byteLength : Byte length of instances.
Kind: static property of Int16LE
Default: 2
Read only: true
number
int16LE.int16le : A 16-bit signed integer accessed in little-endian byte order.
Kind: instance property of Int16LE
number
int16LE.get() ⇒ Kind: instance method of Int16LE
Returns: number
- int16le
int16LE.set(value)
Kind: instance method of Int16LE
Param | Type |
---|---|
value | number |
Struct
types.Int32BE ⇐ A predefined type for storing a 32-bit signed integer in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Int32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int32be :
number
- .get() ⇒
number
- .set(value)
- .int32be :
- static
number
Int32BE.byteLength : Byte length of instances.
Kind: static property of Int32BE
Default: 4
Read only: true
number
int32BE.int32be : A 32-bit signed integer accessed in big-endian byte order.
Kind: instance property of Int32BE
number
int32BE.get() ⇒ Kind: instance method of Int32BE
Returns: number
- int32be
int32BE.set(value)
Kind: instance method of Int32BE
Param | Type |
---|---|
value | number |
Struct
types.Int32LE ⇐ A predefined type for storing a 32-bit signed integer in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Int32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int32le :
number
- .get() ⇒
number
- .set(value)
- .int32le :
- static
number
Int32LE.byteLength : Byte length of instances.
Kind: static property of Int32LE
Default: 4
Read only: true
number
int32LE.int32le : A 32-bit signed integer accessed in big-endian byte order.
Kind: instance property of Int32LE
number
int32LE.get() ⇒ Kind: instance method of Int32LE
Returns: number
- int32le
int32LE.set(value)
Kind: instance method of Int32LE
Param | Type |
---|---|
value | number |
Struct
types.Int8 ⇐ A predefined type for storing an 8-bit signed integer.
Kind: static mixin of types
Extends: Struct
- .Int8 ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .int8 :
number
- .get() ⇒
number
- .set(value)
- .int8 :
- static
number
Int8.byteLength : Byte length of instances.
Kind: static property of Int8
Default: 1
Read only: true
number
int8.int8 : An 8-bit signed integer.
Kind: instance property of Int8
number
int8.get() ⇒ Kind: instance method of Int8
Returns: number
- int8
int8.set(value)
Kind: instance method of Int8
Param | Type |
---|---|
value | number |
Struct
types.Long ⇐ A union of all 8-byte predefined types.
Kind: static mixin of types
Extends: Struct
- .Long ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float64be :
number
- .float64le :
number
- .float64be :
- static
number
Long.byteLength : Byte length of instances.
Kind: static property of Long
Default: 8
Read only: true
number
long.float64be : A 64-bit floating point number accessed in big-endian byte order.
Kind: instance property of Long
See: IEEE 754 Double-precision floating-point format
number
long.float64le : A 64-bit floating point number accessed in little-endian byte order.
Kind: instance property of Long
See: IEEE 754 Double-precision floating-point format
Struct
types.Short ⇐ A union of all 2-byte predefined types.
Kind: static mixin of types
Extends: Struct
- .Short ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- static
number
Short.byteLength : Byte length of instances.
Kind: static property of Short
Default: 2
Read only: true
number
short.int16be : A 16-bit signed integer accessed in big-endian byte order.
Kind: instance property of Short
number
short.int16le : A 16-bit signed integer accessed in little-endian byte order.
Kind: instance property of Short
number
short.uint16be : A 16-bit unsigned integer accessed in big-endian byte order.
Kind: instance property of Short
number
short.uint16le : A 16-bit unsigned integer accessed in little-endian byte order.
Kind: instance property of Short
Struct
types.Uint16BE ⇐ A predefined type for storing a 16-bit unsigned integer in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Uint16BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint16be :
number
- .get() ⇒
number
- .set(value)
- .uint16be :
- static
number
Uint16BE.byteLength : Byte length of instances.
Kind: static property of Uint16BE
Default: 2
Read only: true
number
uint16BE.uint16be : A 16-bit unsigned integer accessed in big-endian byte order.
Kind: instance property of Uint16BE
number
uint16BE.get() ⇒ Kind: instance method of Uint16BE
Returns: number
- uint16be
uint16BE.set(value)
Kind: instance method of Uint16BE
Param | Type |
---|---|
value | number |
Struct
types.Uint16LE ⇐ A predefined type for storing a 16-bit unsigned integer in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Uint16LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint16le :
number
- .get() ⇒
number
- .set(value)
- .uint16le :
- static
number
Uint16LE.byteLength : Byte length of instances.
Kind: static property of Uint16LE
Default: 2
Read only: true
number
uint16LE.uint16le : A 16-bit unsigned integer accessed in little-endian byte order.
Kind: instance property of Uint16LE
number
uint16LE.get() ⇒ Kind: instance method of Uint16LE
Returns: number
- uint16le
uint16LE.set(value)
Kind: instance method of Uint16LE
Param | Type |
---|---|
value | number |
Struct
types.Uint32BE ⇐ A predefined type for storing a 32-bit unsigned integer in big-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Uint32BE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint32be :
number
- .get() ⇒
number
- .set(value)
- .uint32be :
- static
number
Uint32BE.byteLength : Byte length of instances.
Kind: static property of Uint32BE
Default: 4
Read only: true
number
uint32BE.uint32be : A 32-bit unsigned integer accessed in big-endian byte order.
Kind: instance property of Uint32BE
number
uint32BE.get() ⇒ Kind: instance method of Uint32BE
Returns: number
- uint32be
uint32BE.set(value)
Kind: instance method of Uint32BE
Param | Type |
---|---|
value | number |
Struct
types.Uint32LE ⇐ A predefined type for storing a 32-bit unsigned integer in little-endian byte order.
Kind: static mixin of types
Extends: Struct
- .Uint32LE ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint32le :
number
- .get() ⇒
number
- .set(value)
- .uint32le :
- static
number
Uint32LE.byteLength : Byte length of instances.
Kind: static property of Uint32LE
Default: 4
Read only: true
number
uint32LE.uint32le : A 32-bit unsigned integer accessed in little-endian byte order.
Kind: instance property of Uint32LE
number
uint32LE.get() ⇒ Kind: instance method of Uint32LE
Returns: number
- uint32le
uint32LE.set(value)
Kind: instance method of Uint32LE
Param | Type |
---|---|
value | number |
Struct
types.Uint8 ⇐ A predefined type for storing an 8-bit unsigned integer.
Kind: static mixin of types
Extends: Struct
- .Uint8 ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .uint8 :
number
- .get() ⇒
number
- .set(value)
- .uint8 :
- static
number
Uint8.byteLength : Byte length of instances.
Kind: static property of Uint8
Default: 1
Read only: true
number
uint8.uint8 : An 8-bit unsigned integer.
Kind: instance property of Uint8
number
uint8.get() ⇒ Kind: instance method of Uint8
Returns: number
- uint8
uint8.set(value)
Kind: instance method of Uint8
Param | Type |
---|---|
value | number |
Struct
types.Word ⇐ A union of all 4-byte predefined types.
Kind: static mixin of types
Extends: Struct
- .Word ⇐
Struct
- static
- .byteLength :
number
- .byteLength :
- instance
- .float32be :
number
- .float32le :
number
- .int32be :
number
- .int32le :
number
- .uint32be :
number
- .uint32le :
number
- .float32be :
- static
number
Word.byteLength : Byte length of instances.
Kind: static property of Word
Default: 4
Read only: true
number
word.float32be : A 32-bit floating point number accessed in big-endian byte order.
Kind: instance property of Word
See: IEEE 754 Single-precision floating-point format
number
word.float32le : A 32-bit floating point number accessed in big-endian byte order.
Kind: instance property of Word
See: IEEE 754 Single-precision floating-point format
number
word.int32be : A 32-bit signed integer accessed in big-endian byte order.
Kind: instance property of Word
number
word.int32le : A 32-bit signed integer accessed in big-endian byte order.
Kind: instance property of Word
number
word.uint32be : A 32-bit unsigned integer accessed in big-endian byte order.
Kind: instance property of Word
number
word.uint32le : A 32-bit unsigned integer accessed in little-endian byte order.
Kind: instance property of Word
License
Available under the MIT License (c) 2017 Patrick Roberts