INNER CODE UNIT · Go

ProtoReturn

krypton-byte/neonize · goneonize/main.go:371

func ProtoReturn(data proto.Message) C.struct_BytesReturn {
	data_buf, err := proto.Marshal(data)
	if err != nil {
		panic(err)
	}
	return ReturnBytes(data_buf)
}

func ProtoReturnV2(data proto.Message) *C.struct_BytesReturn {
	data_buf, err := proto.Marshal(data)
	if err != nil {
		panic(err)
	}
	return ReturnBytesV2(data_buf)
}

func ProtoReturnV3(data proto.Message) *C.struct_BytesReturn {
	// Marshal into a pooled buffer to avoid a fresh heap allocation on every

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…