func receiveSlice(b C.Buffer) []byte {
	if bufIsNil(b) {
		return nil
	}
	res := C.GoBytes(unsafe.Pointer(b.ptr), cint(b.len))
	return res
}
// Copy the contents of a vector that was allocated on the Rust side.
// Unlike receiveVector, we do not free it, because it will be manually
// freed on the Rust side after control returns to it.
//This should be used in places like callbacks from Rust to Go.
Copy the contents of a vector that was allocated on the Rust side.
Unlike receiveVector, we do not free it, because it will be manually
freed on the Rust side after control returns to it.
This should be used in places like callbacks from Rust to Go.
// Copy the contents of a vector that was allocated on the Rust side . // Unlike receiveVector we do not free it because it will be manually // freed on the Rust side after control returns to it . // This should be used in places like callbacks from Rust to Go .
func receiveSlice(b C.Buffer) []byte {
	if bufIsNil(b) {
		return nil
	}
	res := C.GoBytes(unsafe.Pointer(b.ptr), cint(b.len))
	return res
}
func receiveSlice ( b C . Buffer ) [ ] byte { if bufIsNil ( b ) { return nil } res := C . GoBytes ( unsafe . Pointer ( b . ptr ) , cint ( b . len ) ) return res }
Copy the contents of a vector that was allocated on the Rust side.
Copy the contents of a vector that was allocated on the Rust side .