RawValue method

StructPointer<X> RawValue([
  1. X? value
])

Allocates an unslotted pointer, optionally writing value into it.

The caller is responsible for freeing the returned pointer.

Implementation

StructPointer<X> RawValue([X? value]) {
  final p = Raw();
  if (value != null) value.structWriteInto(p);
  return struct.ptr(p);
}