cstruct-go
cstruct-go copied to clipboard
crash
reflect.Value.Pointer(0x53afa0, 0xc00000c4a0, 0x99, 0x0) D:/Soft/Go/src/reflect/value.go:1457 +0x234 github.com/fananchong/cstruct-go.toStructPointer(0x53afa0, 0xc00000c4a0, 0x99, 0x0) C:/Users/cangy/go/pkg/mod/github.com/fananchong/[email protected]/pointer_unsafe.go:58 +0x4f github.com/fananchong/cstruct-go.getbase(0x53afa0, 0xc00000c4a0, 0x56c500, 0x53afa0, 0x0, 0x0, 0x0) C:/Users/cangy/go/pkg/mod/github.com/fananchong/[email protected]/buffer.go:47 +0xc3 github.com/fananchong/cstruct-go.(*Buffer).Marshal(0xc0000044c0, 0x53afa0, 0xc00000c4a0, 0x0, 0x0) C:/Users/cangy/go/pkg/mod/github.com/fananchong/[email protected]/buffer.go:27 +0x7e github.com/fananchong/cstruct-go.Marshal(0x53afa0, 0xc00000c4a0, 0x0, 0x0, 0x0, 0x0, 0x0) C:/Users/cangy/go/pkg/mod/github.com/fananchong/[email protected]/encode.go:5 +0x89 main.main() d:/WORK/open-game/server/main.go:22 +0xc8
我看堆栈是 main.go 下,就调用 cstruct-go 序列化了,是测试例子吗? 代码发下,我调试下看