mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 14:43:01 +02:00
Kernel: Convert the DiskBackedFS write API to take "const u8*"
This way clients are not required to have instantiated ByteBuffers and can choose whatever memory scheme works best for them. Also converted some of the Ext2FS code to use stack buffers instead.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 11:52:41 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/922fd703c9c
@@ -22,8 +22,8 @@ protected:
|
||||
bool read_block(unsigned index, u8* buffer) const;
|
||||
bool read_blocks(unsigned index, unsigned count, u8* buffer) const;
|
||||
|
||||
bool write_block(unsigned index, const ByteBuffer&);
|
||||
bool write_blocks(unsigned index, unsigned count, const ByteBuffer&);
|
||||
bool write_block(unsigned index, const u8*);
|
||||
bool write_blocks(unsigned index, unsigned count, const u8*);
|
||||
|
||||
private:
|
||||
DiskCache& cache() const;
|
||||
|
||||
Reference in New Issue
Block a user