mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 19:35:08 +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
|
@ -119,7 +119,7 @@ ByteBuffer CSocket::receive(int max_size)
|
|||
|
||||
bool CSocket::send(const ByteBuffer& data)
|
||||
{
|
||||
int nsent = ::send(fd(), data.pointer(), data.size(), 0);
|
||||
int nsent = ::send(fd(), data.data(), data.size(), 0);
|
||||
if (nsent < 0) {
|
||||
set_error(errno);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue