1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-24 05:18:36 +00:00

Takes a first shot at INQUIRY.

This commit is contained in:
Thomas Harte
2019-09-07 22:04:44 -04:00
parent 6e0e9afe2f
commit 00ce7f8ae0
5 changed files with 51 additions and 20 deletions
+4
View File
@@ -39,3 +39,7 @@ uint16_t CommandState::number_of_blocks() const {
return uint16_t((data_[7] << 8) | data_[8]);
}
}
size_t CommandState::allocated_inquiry_bytes() const {
return size_t(((data_[4] - 1) & 0xff) + 1);
}