Read l bytes into the low bits of a value of an unsigned integral type T, where l < sizeof(T).
Synopsis
Declared in <folly/lang/Bits.h>
template<class T>
T
partialLoadUnaligned(
void const* p,
size_t l);
Description
This is intended as a complement to loadUnaligned to read the tail of a buffer when it is processed one word at a time.
Return Value
The l low bytes read from p, as a value of type T.
Parameters
Name |
Description |
p |
Pointer to the unaligned bytes to read. |
l |
The number of bytes to read; must be less than sizeof(T). |
Created with MrDocs