fixup! feat: Add BufferWriter class (#5154) (#5437)

This commit is contained in:
Charles Kerr
2023-04-22 18:13:39 -05:00
committed by GitHub
parent 9f8a7a656e
commit 7e7d8137a0

View File

@@ -581,6 +581,7 @@ void tr_peerIo::write(libtransmission::Buffer& buf, bool is_piece_data)
encrypt(len, bytes);
outbuf_info_.emplace_back(std::size(buf), is_piece_data);
outbuf_.add(buf);
buf.clear();
}
void tr_peerIo::write_bytes(void const* bytes, size_t n_bytes, bool is_piece_data)