NativeAlloc<C extends NativeType> constructor
NativeAlloc<C extends NativeType> (})
Implementation
NativeAlloc(super.temp, super.name, {
required super.byteSize,
required super.allocatorFunc,
required super.printerFunc,
}) : super(
freeFunc: (ptr) => calloc.free(ptr),
nullptrFactory: () => nullptr,
pointerFactory: (ptr) => ptr,
pointerToSource: (ptr) => ptr,
isPointerNull: (ptr) => ptr == nullptr || ptr.address == 0,
);