mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
Ext2FileSystem::readInode() should return an empty buffer for 0-length files.
This commit is contained in:
parent
c2d42710bb
commit
750b27cb07
2 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,7 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
static ByteBuffer createEmpty() { return ByteBuffer(Buffer<byte>::createUninitialized(0)); }
|
||||
static ByteBuffer createUninitialized(size_t size) { return ByteBuffer(Buffer<byte>::createUninitialized(size)); }
|
||||
static ByteBuffer copy(const byte* data, size_t size) { return ByteBuffer(Buffer<byte>::copy(data, size)); }
|
||||
static ByteBuffer wrap(byte* data, size_t size) { return ByteBuffer(Buffer<byte>::wrap(data, size)); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue