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