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

Method GetCommandByteCount

cpp/hal/bus.cpp:22–27  ·  view source on GitHub ↗

--------------------------------------------------------------------------- Get the number of bytes for a command ---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

20//
21//---------------------------------------------------------------------------
22int BUS::GetCommandByteCount(uint8_t opcode)
23{
24 const auto& mapping = command_mapping.find(static_cast<scsi_command>(opcode));
25
26 return mapping != command_mapping.end() ? mapping->second.first : 0;
27}
28
29//---------------------------------------------------------------------------
30//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected