Basic U2FDevice implementation.
This commit is contained in:
5
IO.hpp
5
IO.hpp
@@ -21,9 +21,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
extern std::string binaryDirectory;
|
||||
extern std::string cacheDirectory;
|
||||
|
||||
//Returns either the number of bytes specified,
|
||||
//or returns empty vector without discarding bytes from HID stream
|
||||
std::vector<uint8_t> readNonBlock(const size_t count);
|
||||
|
||||
//Blocking write to HID stream - shouldn't block for too long
|
||||
void write(const uint8_t* bytes, const size_t count);
|
||||
void write(const std::vector<uint8_t>& data);
|
||||
|
||||
Reference in New Issue
Block a user