aboutsummaryrefslogblamecommitdiff
path: root/src/type.cpp
blob: 1b02933347a71238d8bfbffa201e0e9372585410 (plain) (tree)
1
2
3
4
5
6
7
8
9




                            



                              














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

extern "C" {

bytearray_t *bytearray_new() {
    return new bytearray_t();
}

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