#include "components/apdu/apdu_command.h"
#include "base/check_op.h"
namespace apdu {
namespace {
uint16_t ParseMessageLength(base::span<const uint8_t> message, size_t offset) { … }
}
std::optional<ApduCommand> ApduCommand::CreateFromMessage(
base::span<const uint8_t> message) { … }
ApduCommand::ApduCommand() = default;
ApduCommand::ApduCommand(uint8_t cla,
uint8_t ins,
uint8_t p1,
uint8_t p2,
size_t response_length,
std::vector<uint8_t> data)
: … { … }
ApduCommand::ApduCommand(ApduCommand&& that) = default;
ApduCommand& ApduCommand::operator=(ApduCommand&& that) = default;
ApduCommand::~ApduCommand() = default;
std::vector<uint8_t> ApduCommand::GetEncodedCommand() const { … }
}