mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
AK+Kernel: Make BitmapView read-only
This commit is contained in:
parent
850db15d66
commit
bf7a2ff941
3 changed files with 2 additions and 11 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/BitmapView.h>
|
||||
#include <AK/Bitmap.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <Kernel/FileSystem/BlockBasedFileSystem.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
|
@ -176,7 +176,7 @@ private:
|
|||
BlockIndex bitmap_block_index { 0 };
|
||||
bool dirty { false };
|
||||
NonnullOwnPtr<KBuffer> buffer;
|
||||
BitmapView bitmap(u32 blocks_per_group) { return BitmapView { buffer->data(), blocks_per_group }; }
|
||||
Bitmap bitmap(u32 blocks_per_group) { return Bitmap { buffer->data(), blocks_per_group }; }
|
||||
};
|
||||
|
||||
ErrorOr<CachedBitmap*> get_bitmap_block(BlockIndex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue