[ox/fs] Cleanup
This commit is contained in:
parent
c5326d72af
commit
4f2a03db94
@ -93,7 +93,7 @@ class FileStoreTemplate {
|
|||||||
|
|
||||||
Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size = nullptr) const;
|
Error read(InodeId_t id, FsSize_t readStart, FsSize_t readSize, void *data, FsSize_t *size = nullptr) const;
|
||||||
|
|
||||||
const ptrarith::Ptr<uint8_t, std::size_t> read(InodeId_t id) const;
|
ptrarith::Ptr<uint8_t, std::size_t> read(InodeId_t id) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads the "file" at the given id. You are responsible for freeing
|
* Reads the "file" at the given id. You are responsible for freeing
|
||||||
@ -402,7 +402,7 @@ Error FileStoreTemplate<size_t>::read(InodeId_t id, FsSize_t readStart,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename size_t>
|
template<typename size_t>
|
||||||
const ptrarith::Ptr<uint8_t, std::size_t> FileStoreTemplate<size_t>::read(InodeId_t id) const {
|
ptrarith::Ptr<uint8_t, std::size_t> FileStoreTemplate<size_t>::read(InodeId_t id) const {
|
||||||
auto item = find(id);
|
auto item = find(id);
|
||||||
if (item.valid()) {
|
if (item.valid()) {
|
||||||
return item->data();
|
return item->data();
|
||||||
|
2
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
2
deps/ox/src/ox/fs/ptrarith/nodebuffer.hpp
vendored
@ -97,8 +97,6 @@ class OX_PACKED NodeBuffer {
|
|||||||
Header m_header;
|
Header m_header;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NodeBuffer() noexcept;
|
|
||||||
|
|
||||||
NodeBuffer(const NodeBuffer &other, size_t size) noexcept;
|
NodeBuffer(const NodeBuffer &other, size_t size) noexcept;
|
||||||
|
|
||||||
explicit NodeBuffer(size_t size) noexcept;
|
explicit NodeBuffer(size_t size) noexcept;
|
||||||
|
Loading…
Reference in New Issue
Block a user