toBytes method

ByteData toBytes()

Implementation

ByteData toBytes() {
  final nativeSlice = DartApi.native.signature.toBytes(_ffi);
  final slice = ByteSlice(nativeSlice);
  try {
    return slice.toBytes();
  } finally {
    slice.dispose();
  }
}