aboutsummaryrefslogblamecommitdiff
path: root/src/type.cpp
blob: 8290a07f947becd1b31b433b5e09a3ef3cdddaf1 (plain) (tree)



















                                           
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/type.h"

extern "C" {

uint8_t *bytearray_data(bytearray_t *arr) {
    return &(*arr)[0];
}

size_t bytearray_size(bytearray_t *arr) {
    return arr->size();
}

void bytearray_free(bytearray_t *arr) {
    delete arr;
}

}

#endif