1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-02 18:16:08 +00:00

Further remove type info from function naming.

This commit is contained in:
Thomas Harte
2025-02-26 16:00:34 -05:00
parent b44ea31bbf
commit 1db756063b
23 changed files with 192 additions and 188 deletions

View File

@@ -41,16 +41,16 @@ FileHolder::FileHolder(const std::string &file_name, FileMode ideal_mode)
if(!file_) throw Error::CantOpen;
}
uint8_t FileHolder::get8() {
uint8_t FileHolder::get() {
return uint8_t(std::fgetc(file_));
}
void FileHolder::put8(uint8_t value) {
void FileHolder::put(uint8_t value) {
std::fputc(value, file_);
}
void FileHolder::putn(std::size_t repeats, uint8_t value) {
while(repeats--) put8(value);
while(repeats--) put(value);
}
std::vector<uint8_t> FileHolder::read(std::size_t size) {