aboutsummaryrefslogtreecommitdiff
path: root/app/source/Cplt/Utils/IO/FileStream.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-11-27 12:04:31 -0800
committerrtk0c <[email protected]>2022-11-27 12:04:31 -0800
commit182c8f8357739f905bbd721006480502435b6b43 (patch)
tree082613a474d863182e2ad8f2167f1643f26e67a3 /app/source/Cplt/Utils/IO/FileStream.hpp
parentb01ed99a1cd0c863c8709930658513c04dd70f61 (diff)
Update brace style to match rest of my projectscplt-imgui
Diffstat (limited to 'app/source/Cplt/Utils/IO/FileStream.hpp')
-rw-r--r--app/source/Cplt/Utils/IO/FileStream.hpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/app/source/Cplt/Utils/IO/FileStream.hpp b/app/source/Cplt/Utils/IO/FileStream.hpp
index 453ddbe..37b2a36 100644
--- a/app/source/Cplt/Utils/IO/FileStream.hpp
+++ b/app/source/Cplt/Utils/IO/FileStream.hpp
@@ -8,10 +8,8 @@
// TODO switch to custom when unit tests are ready and bugs are fixed
#define CPLT_FILESTREAM_USE_CSTDIO
-struct IoResult
-{
- enum ErrorKind
- {
+struct IoResult {
+ enum ErrorKind {
ERR_None,
ERR_PermissionDenied,
ERR_UnexpectedEof,
@@ -25,8 +23,7 @@ struct IoResult
size_t BytesMoved;
};
-class InputFileStream
-{
+class InputFileStream {
private:
#if defined(CPLT_FILESTREAM_USE_CSTDIO)
FILE* mFile;
@@ -60,11 +57,9 @@ public:
IoResult ReadBytes(size_t bufferLength, std::byte* buffer);
};
-class OutputFileStream
-{
+class OutputFileStream {
public:
- enum WriteMode
- {
+ enum WriteMode {
AppendFile,
TruncateFile,
};