py_tobytes method

Pointer<UnsignedChar> py_tobytes(
  1. py_Ref arg0,
  2. Pointer<Int> size
)

Convert a bytes object in python to char array.

Implementation

ffi.Pointer<ffi.UnsignedChar> py_tobytes(
  py_Ref arg0,
  ffi.Pointer<ffi.Int> size,
) {
  return _py_tobytes(
    arg0,
    size,
  );
}