capnp-ts
Version:
Strongly typed Cap'n Proto implementation for the browser and Node.js using TypeScript
26 lines (23 loc) • 340 B
text/typescript
/**
* @author jdiaz5513
*/
export enum ListElementSize {
VOID = 0,
BIT = 1,
BYTE = 2,
BYTE_2 = 3,
BYTE_4 = 4,
BYTE_8 = 5,
POINTER = 6,
COMPOSITE = 7
}
export const ListElementOffset = [
0, // void
0.125, // bit
1, // byte
2, // two byte
4, // four byte
8, // eight byte
8, // pointer
NaN // composite
];