pub type Dart_HeapSnapshotWriteChunkCallback = Option<unsafe extern "C" fn(context: *mut c_void, buffer: *mut u8, size: isize, is_last: bool)>;
Expand description

Callback provided by the caller of Dart_WriteHeapSnapshot which is used to write out chunks of the requested heap snapshot.

\param context An opaque context which was passed to Dart_WriteHeapSnapshot together with this callback.

\param buffer Pointer to the buffer containing a chunk of the snapshot. The callback owns the buffer and needs to free it.

\param size Number of bytes in the buffer to be written.

\param is_last Set to true for the last chunk. The callback will not be invoked again after it was invoked once with is_last set to true.

Aliased Type§

enum Dart_HeapSnapshotWriteChunkCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: isize, _: bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut u8, _: isize, _: bool))

Some value of type T.