I have this code
var b = JSFunctionBytecode {
.func_kind = fd.func_kind,
.byte_code_buf = fd.byte_code.buf,
.byte_code_len = fd.byte_code.size,
.stack_size = 0,
};
return JS_MKPTR(JS_TAGS.JS_TAG_BYTECODE, &b);
``` where
fn JS_MKPTR(tag: JS_TAGS, p: *JSFunctionBytecode) JSValue {
return JSValue {
.tag = tag,
.u = JSValueUnion {
.ptr = @ptrCast(*anyopaque, p)
}
};
}
And if I print the contents at that `byte_code_buf` after the cast, it is much longer and has very different data than it originally did. Does this have something to do with the way that I'm casting it?