[ox/fs] Cleanup formatting

This commit is contained in:
Gary Talent 2023-06-06 00:29:17 -05:00
parent 13b2df57fe
commit acf04665bc

View File

@ -25,7 +25,7 @@ class OX_PACKED NodeBuffer {
LittleEndian<size_t> firstItem = 0; LittleEndian<size_t> firstItem = 0;
}; };
using ItemPtr = Ptr<Item, size_t, sizeof(Header)>; using ItemPtr = Ptr<Item, size_t, sizeof(Header)>;
class Iterator { class Iterator {
private: private:
@ -268,7 +268,7 @@ template<typename size_t, typename Item>
Result<typename NodeBuffer<size_t, Item>::ItemPtr> NodeBuffer<size_t, Item>::malloc(std::size_t size) noexcept { Result<typename NodeBuffer<size_t, Item>::ItemPtr> NodeBuffer<size_t, Item>::malloc(std::size_t size) noexcept {
const auto sz = static_cast<std::size_t>(size); const auto sz = static_cast<std::size_t>(size);
oxTracef("ox::ptrarith::NodeBuffer::malloc", "Size: {}", sz); oxTracef("ox::ptrarith::NodeBuffer::malloc", "Size: {}", sz);
size_t fullSize = static_cast<size_t>(sz + sizeof(Item)); size_t fullSize = static_cast<size_t>(sz + sizeof(Item));
if (m_header.size - m_header.bytesUsed >= fullSize) { if (m_header.size - m_header.bytesUsed >= fullSize) {
auto last = lastItem(); auto last = lastItem();
size_t addr; size_t addr;