summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorsin-ack <sin-ack@users.noreply.github.com>2021-12-18 11:29:51 +0000
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-01-13 15:16:12 +0330
commit28063de488a8aa83de19cfb15b873ad943356838 (patch)
tree4cda7b106453734d493f9dfaa1b8e97f4a2221d6 /Tests
parent9569841589b13a4512ba32589219bac76925aa20 (diff)
downloadserenity-28063de488a8aa83de19cfb15b873ad943356838.zip
AK: Add ByteBuffer::{must_,}get_bytes_for_writing()
This is useful for writing new data at the end of a ByteBuffer. For instance, with the Stream API: auto pending_bytes = TRY(stream.pending_bytes()); auto receive_buffer = TRY(buffer.get_bytes_for_writing( pending_bytes)); TRY(stream.read(receive_buffer));
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions