move function from header to .cpp file

This commit is contained in:
Arvid Norberg 2015-01-02 00:51:09 +00:00
parent 299b6338b6
commit 9b0f7bbe72
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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();