diff options
author | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-06-04 23:00:55 -0400 |
commit | fad6446ce15bcd1303fdd162d6938ab30046467e (patch) | |
tree | 524e713d3574042176c1021bbfd610a885e950a2 /src/type.cpp | |
parent | dab48a1825aed9c810ce83ea8054fa435ecb41be (diff) |
finish the minimal working example
Diffstat (limited to 'src/type.cpp')
-rw-r--r-- | src/type.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/type.cpp b/src/type.cpp index 90d5055..397daac 100644 --- a/src/type.cpp +++ b/src/type.cpp @@ -6,12 +6,12 @@ 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(); } -void bytearray_free(bytearray_t *arr) { delete arr; } - } #endif |