const std = @import("std"); const Env = @import("root.zig"); pub extern "object_store" fn process( [*]const u16, [*]const Env.Value, [*]*Env.Value, length: usize, ) void; export fn valueAllocBuffer(value: *Env.Value, len: usize) [*]u8 { const ptr: [*]u8 = @ptrCast(std.heap.wasm_allocator.alloc(u8, len) catch @panic("unable to allocate string")); value.kind = .string; value.value = .{ .string = .{ .ptr = ptr, .len = len, }, }; return @constCast(value.value.string.ptr); }