MCPcopy Create free account
hub / github.com/arvidn/libtorrent / mutable_buffer

Method mutable_buffer

src/receive_buffer.cpp:156–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155#if !defined TORRENT_DISABLE_ENCRYPTION
156span<char> receive_buffer::mutable_buffer()
157{
158 INVARIANT_CHECK;
159 return span<char>(m_recv_buffer).subspan(m_recv_start, m_recv_pos);
160}
161
162span<char> receive_buffer::mutable_buffer(int const bytes)
163{

Callers 4

TORRENT_TESTFunction · 0.45
init_bt_handshakeMethod · 0.45
on_receive_implMethod · 0.45
decryptMethod · 0.45

Calls 2

subspanMethod · 0.80
packet_sizeMethod · 0.80

Tested by 1

TORRENT_TESTFunction · 0.36