forked from premiere/premiere-libtorrent
move function from header to .cpp file
This commit is contained in:
parent
299b6338b6
commit
9b0f7bbe72
|
@ -40,11 +40,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
namespace libtorrent {
|
namespace libtorrent {
|
||||||
|
|
||||||
inline int round_up8(int v)
|
|
||||||
{
|
|
||||||
return ((v & 7) == 0) ? v : v + (8 - (v & 7));
|
|
||||||
}
|
|
||||||
|
|
||||||
struct receive_buffer
|
struct receive_buffer
|
||||||
{
|
{
|
||||||
friend struct crypto_receive_buffer;
|
friend struct crypto_receive_buffer;
|
||||||
|
|
|
@ -34,6 +34,11 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
namespace libtorrent {
|
namespace libtorrent {
|
||||||
|
|
||||||
|
int round_up8(int v)
|
||||||
|
{
|
||||||
|
return ((v & 7) == 0) ? v : v + (8 - (v & 7));
|
||||||
|
}
|
||||||
|
|
||||||
int receive_buffer::max_receive()
|
int receive_buffer::max_receive()
|
||||||
{
|
{
|
||||||
int max = packet_bytes_remaining();
|
int max = packet_bytes_remaining();
|
||||||
|
|
Loading…
Reference in New Issue