1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_core/lib/ffi.cpp

10 lines
No EOL
187 B
C++

#include "ffi.hpp"
void __alloc(buffer_t* buffer, size_t length) {
buffer->data = (uint8_t*)malloc(length);
buffer->length = length;
}
void __free(uint8_t* ptr) {
free(ptr);
}