aboutsummaryrefslogtreecommitdiff
path: root/shared/bin.h
blob: bfcda0c04c8fe1cc0b3fef143762a15867ac804a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <stdint.h>

/** @brief binary data container with length */
typedef struct {
  uint16_t bytes;
  uint8_t data[];
} ws_s_bin;

/** @brief allocate new ws_s_bin struct */
ws_s_bin *ws_bin_s_alloc(uint16_t bytes);