Access the pointer to the
ArrowSchema
struct. This can be viewed or copied (without serialization) to an Arrow JS Field by
using arrow-js-ffi. You can access the
WebAssembly.Memory
instance by using wasmMemory.
// Pass `true` to copy arrays across the boundary instead of creating views. constjsRecordBatch=parseRecordBatch( wasmMemory.buffer, wasmRecordBatch.arrayAddr(), wasmRecordBatch.schemaAddr(), true );
Access the pointer to the
ArrowSchemastruct. This can be viewed or copied (without serialization) to an Arrow JSFieldby usingarrow-js-ffi. You can access theWebAssembly.Memoryinstance by usingwasmMemory.Example: