mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-21 17:16:44 +00:00
Fill in everything except SetChannelStatus.
This commit is contained in:
@@ -51,8 +51,8 @@ uint8_t FileHolder::get() {
|
||||
return uint8_t(std::fgetc(file_));
|
||||
}
|
||||
|
||||
void FileHolder::put(const uint8_t value) {
|
||||
std::fputc(value, file_);
|
||||
bool FileHolder::put(const uint8_t value) {
|
||||
return std::fputc(value, file_) == value;
|
||||
}
|
||||
|
||||
void FileHolder::putn(std::size_t repeats, const uint8_t value) {
|
||||
|
||||
@@ -117,8 +117,11 @@ public:
|
||||
/*! Reads a single byte from @c file. */
|
||||
uint8_t get();
|
||||
|
||||
/*! Writes a single byte from @c file. */
|
||||
void put(uint8_t);
|
||||
/*!
|
||||
Writes a single byte from @c file.
|
||||
@returns @c true on success; @c false on failure.
|
||||
*/
|
||||
bool put(uint8_t);
|
||||
|
||||
/*! Writes @c value a total of @c repeats times. */
|
||||
void putn(std::size_t repeats, uint8_t value);
|
||||
|
||||
Reference in New Issue
Block a user