mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-30 09:37:53 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -22,17 +22,17 @@
|
|||
#include "io_file.hpp"
|
||||
|
||||
File::Result<File::Size> FileReader::read(void* const buffer, const File::Size bytes) {
|
||||
auto read_result = file.read(buffer, bytes) ;
|
||||
if( read_result.is_ok() ) {
|
||||
bytes_read += read_result.value();
|
||||
}
|
||||
return read_result;
|
||||
auto read_result = file.read(buffer, bytes);
|
||||
if (read_result.is_ok()) {
|
||||
bytes_read += read_result.value();
|
||||
}
|
||||
return read_result;
|
||||
}
|
||||
|
||||
File::Result<File::Size> FileWriter::write(const void* const buffer, const File::Size bytes) {
|
||||
auto write_result = file.write(buffer, bytes) ;
|
||||
if( write_result.is_ok() ) {
|
||||
bytes_written += write_result.value();
|
||||
}
|
||||
return write_result;
|
||||
auto write_result = file.write(buffer, bytes);
|
||||
if (write_result.is_ok()) {
|
||||
bytes_written += write_result.value();
|
||||
}
|
||||
return write_result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue