MCPcopy Create free account
hub / github.com/PiSCSI/piscsi / XferOut

Method XferOut

cpp/controllers/scsi_controller.cpp:673–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673bool ScsiController::XferOut(bool cont)
674{
675 assert(IsDataOut());
676
677 if (!IsByteTransfer()) {
678 return XferOutBlockOriented(cont);
679 }
680
681 const uint32_t count = GetBytesToTransfer();
682 SetByteTransfer(false);
683
684 auto device = GetDeviceForLun(GetEffectiveLun());
685 return device != nullptr ? device->WriteByteSequence(span(GetBuffer().data(), count)) : false;
686}
687
688void ScsiController::DataOutNonBlockOriented() const
689{

Callers

nothing calls this directly

Calls 1

WriteByteSequenceMethod · 0.45

Tested by

no test coverage detected