aboutsummaryrefslogtreecommitdiff
path: root/src/type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/type.cpp')
-rw-r--r--src/type.cpp4
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