mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
This commit is contained in:
@@ -18,8 +18,8 @@ public:
|
||||
bool is_valid() const { return m_map != (void*)-1; }
|
||||
void unmap();
|
||||
|
||||
void* pointer() { return m_map; }
|
||||
const void* pointer() const { return m_map; }
|
||||
void* data() { return m_map; }
|
||||
const void* data() const { return m_map; }
|
||||
size_t size() const { return m_size; }
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user