aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.h
blob: c7405be049021f9ec8b065cb80cc7770d0b814de (plain)
1
2
3
4
5
6
7
8
9
10
11
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);