mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 15:55: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
|
@ -149,7 +149,7 @@ void Client::send_commands(Vector<Command> commands)
|
|||
for (auto& command : commands)
|
||||
stream << (u8)IAC << command.command << command.subcommand;
|
||||
stream.snip();
|
||||
m_socket->write(buffer.pointer(), buffer.size());
|
||||
m_socket->write(buffer.data(), buffer.size());
|
||||
}
|
||||
|
||||
void Client::quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue