transferSingleNativeMem method

Future<void> transferSingleNativeMem({
  1. Pointer<NativeType>? txBuf,
  2. Pointer<NativeType>? rxBuf,
  3. required int length,
  4. SpiTransferProperties? transferProperties,
})

Implementation

Future<void> transferSingleNativeMem(
    {ffi.Pointer? txBuf, ffi.Pointer? rxBuf, required int length, SpiTransferProperties? transferProperties}) {
  return transferNativeMem([
    SpiTransfer(
        data: SpiTransferData.fromNativeMem(txPointer: txBuf, rxPointer: rxBuf, length: length)
            as NativeMemSpiTransferData,
        properties: transferProperties ?? SpiTransferProperties.defaultProperties)
  ]);
}