[ox/fs] Cleanup formatting
This commit is contained in:
parent
13b2df57fe
commit
acf04665bc
4
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
4
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user