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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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)