asTypedList method
Returns a typed view of this buffer. Note: The lifetime of this view is tied to the lifetime of this FfiBufferInt8. This Int8List must not live longer than the creating FfiBufferInt8
Implementation
Int8List asTypedList() {
final buffer = _box.borrow();
final addressRaw = _api._ffiBufferAddress(buffer);
final size = _api._ffiBufferSize(buffer) ~/ 1;
return ffi.Pointer<ffi.Int8>.fromAddress(addressRaw).asTypedList(size);
}