diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-13 15:59:14 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-13 15:59:14 +0200 |
commit | 385b47211ea8674f97f014537d694bb2efbd6ab9 (patch) | |
tree | bad26f85d854ae55b4e97680de96e07e9ff7ea8d /shared/bin.h | |
parent | 1032c63bae663d8ed8736020b60a4ba8744062ee (diff) |
WIP protocol implementation
Diffstat (limited to 'shared/bin.h')
-rw-r--r-- | shared/bin.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shared/bin.h b/shared/bin.h new file mode 100644 index 0000000..c7405be --- /dev/null +++ b/shared/bin.h @@ -0,0 +1,12 @@ +#pragma once + +#include <stdint.h> + +typedef struct { + uint16_t bytes; + uint8_t data[]; +} ws_s_bin; + +/** allocate new ws_s_bin struct and fill with `*data` for `bytes` bytes */ +ws_s_bin *ws_bin_s_alloc(uint16_t bytes, uint8_t *data); + |