diff src/core/byte_stream.cc @ 369:47c9f8502269

*: clang-format all the things I've edited the formatting a bit. Now pointer asterisks (and reference ampersands) are on the variable instead of the type, as well as having newlines for function braces (but nothing else)
author Paper <paper@tflc.us>
date Fri, 25 Jul 2025 10:16:02 -0400
parents 99c961c91809
children
line wrap: on
line diff
--- a/src/core/byte_stream.cc	Fri Jul 25 10:05:23 2025 -0400
+++ b/src/core/byte_stream.cc	Fri Jul 25 10:16:02 2025 -0400
@@ -1,19 +1,23 @@
 #include "core/byte_stream.h"
 
-ByteStream::ByteStream(std::uint8_t *bytes, std::size_t size) {
+ByteStream::ByteStream(std::uint8_t *bytes, std::size_t size)
+{
 	bytes_ = bytes;
 	size_ = size;
 }
 
-void ByteStream::ResetOffset() {
+void ByteStream::ResetOffset()
+{
 	offset_ = 0;
 }
 
-void ByteStream::SetEndianness(ByteStream::ByteOrder endian) {
+void ByteStream::SetEndianness(ByteStream::ByteOrder endian)
+{
 	endian_ = endian;
 }
 
-bool ByteStream::ReadString(std::string& str, std::size_t size) {
+bool ByteStream::ReadString(std::string &str, std::size_t size)
+{
 	if (offset_ + size >= size_)
 		return false;
 
@@ -22,7 +26,8 @@
 	return true;
 }
 
-bool ByteStream::Advance(std::size_t amount) {
+bool ByteStream::Advance(std::size_t amount)
+{
 	if (offset_ + amount >= size_)
 		return false;