blob: 397daacafe3c117cdf428b757e7ba66aa3b8007c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "salticidae/config.h"
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/type.h"
extern "C" {
bytearray_t *bytearray_new() { return new bytearray_t(); }
void bytearray_free(bytearray_t *arr) { delete arr; }
uint8_t *bytearray_data(bytearray_t *arr) { return &(*arr)[0]; }
size_t bytearray_size(bytearray_t *arr) { return arr->size(); }
}
#endif
|