Load/Store Operators
Make a ushort from two bytes
ubyte i0 | the first ubyte |
ubyte i1 | the second ubyte |
Make a uint from four bytes
ubyte i0 | the first ubyte |
ubyte i1 | the second ubyte |
ubyte i2 | the third ubyte |
ubyte i3 | the fourth ubyte |
Make a ulong from eight bytes
ubyte i0 | the first ubyte |
ubyte i1 | the second ubyte |
ubyte i2 | the third ubyte |
ubyte i3 | the fourth ubyte |
ubyte i4 | the fifth ubyte |
ubyte i5 | the sixth ubyte |
ubyte i6 | the seventh ubyte |
ubyte i7 | the eighth ubyte |
Load a big-endian word
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a little-endian word
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a big-endian ushort
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a little-endian ushort
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a big-endian uint
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a little-endian uint
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a big-endian ulong
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load a little-endian ulong
const(ubyte)* input | a pointer to some bytes |
size_t off | an offset into the array |
Load two little-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
Load four little-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
T x2 | where the third word will be written |
T x3 | where the fourth word will be written |
Load eight little-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
T x2 | where the third word will be written |
T x3 | where the fourth word will be written |
T x4 | where the fifth word will be written |
T x5 | where the sixth word will be written |
T x6 | where the seventh word will be written |
T x7 | where the eighth word will be written |
Load a variable number of little-endian words
T* output | the output array of words |
const(ubyte)* input | the input array of bytes |
size_t count | how many words are in in |
Load two big-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
Load four big-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
T x2 | where the third word will be written |
T x3 | where the fourth word will be written |
Load eight big-endian words
const(ubyte)* input | a pointer to some bytes |
T x0 | where the first word will be written |
T x1 | where the second word will be written |
T x2 | where the third word will be written |
T x3 | where the fourth word will be written |
T x4 | where the fifth word will be written |
T x5 | where the sixth word will be written |
T x6 | where the seventh word will be written |
T x7 | where the eighth word will be written |
Load a variable number of big-endian words
T* output | the output array of words |
const(ubyte)* input | the input array of bytes |
size_t count | how many words are in in |
Store a big-endian ushort
ushort input | the input ushort |
ubyte[2]* output | the ubyte array to write to |
Store a little-endian ushort
ushort input | the input ushort |
ubyte[2]* output | the ubyte array to write to |
Store a big-endian uint
uint input | the input uint |
ubyte[4]* output | the ubyte array to write to |
Store a little-endian uint
uint input | the input uint |
ubyte[4]* output | the ubyte array to write to |
Store a big-endian ulong
ulong input | the input ulong |
ubyte[8]* output | the ubyte array to write to |
Store a little-endian ulong
ulong input | the input ulong |
ubyte[8]* output | the ubyte array to write to |
Store a little-endian ulong
T input | the input ulong |
ubyte* output | the ubyte array to write to |
Store a big-endian ulong
T input | the input ulong |
ubyte* output | the ubyte array to write to |
Store two little-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
Store two big-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
Store four little-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
T x2 | the third word |
T x3 | the fourth word |
Store four big-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
T x2 | the third word |
T x3 | the fourth word |
Store eight little-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
T x2 | the third word |
T x3 | the fourth word |
T x4 | the fifth word |
T x5 | the sixth word |
T x6 | the seventh word |
T x7 | the eighth word |
Store eight big-endian words
ubyte* output | the output ubyte array |
T x0 | the first word |
T x1 | the second word |
T x2 | the third word |
T x3 | the fourth word |
T x4 | the fifth word |
T x5 | the sixth word |
T x6 | the seventh word |
T x7 | the eighth word |