ffi.Pointer<ffi.Uint8> createBytesPointer(int length) => malloc.allocate<ffi.Uint8>(ffi.sizeOf<ffi.Uint8>() * length);