mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:35:07 +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:
parent
dd696e7c75
commit
8f45a259fc
30 changed files with 89 additions and 92 deletions
|
@ -38,7 +38,7 @@ ByteBuffer CIODevice::read(int max_size)
|
|||
if (!max_size)
|
||||
return {};
|
||||
auto buffer = ByteBuffer::create_uninitialized(max_size);
|
||||
auto* buffer_ptr = (char*)buffer.pointer();
|
||||
auto* buffer_ptr = (char*)buffer.data();
|
||||
int remaining_buffer_space = buffer.size();
|
||||
int taken_from_buffered = 0;
|
||||
if (!m_buffered_data.is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue