Lines Matching defs:byteCount
1047 addDatatype( tr_peerIo * io, size_t byteCount, bool isPieceData )
1052 d->length = byteCount;
1074 const size_t byteCount = evbuffer_get_length( buf );
1077 addDatatype( io, byteCount, isPieceData );
1081 tr_peerIoWriteBytes( tr_peerIo * io, const void * bytes, size_t byteCount, bool isPieceData )
1084 evbuffer_reserve_space( io->outbuf, byteCount, &iovec, 1 );
1086 iovec.iov_len = byteCount;
1093 addDatatype( io, byteCount, isPieceData );
1132 tr_peerIoReadBytesToBuf( tr_peerIo * io, struct evbuffer * inbuf, struct evbuffer * outbuf, size_t byteCount )
1138 assert( evbuffer_get_length( inbuf ) >= byteCount );
1142 evbuffer_remove_buffer( inbuf, tmp, byteCount );
1152 evbuffer_peek( outbuf, byteCount, &pos, &iovec, 1 );
1154 byteCount -= iovec.iov_len;
1160 tr_peerIoReadBytes( tr_peerIo * io, struct evbuffer * inbuf, void * bytes, size_t byteCount )
1163 assert( evbuffer_get_length( inbuf ) >= byteCount );
1168 evbuffer_remove( inbuf, bytes, byteCount );
1172 evbuffer_remove( inbuf, bytes, byteCount );
1173 tr_cryptoDecrypt( &io->crypto, byteCount, bytes, bytes );
1203 size_t byteCount )
1208 while( byteCount > 0 )
1210 const size_t thisPass = MIN( byteCount, buflen );
1212 byteCount -= thisPass;
1329 size_t byteCount = 0;
1338 byteCount += it->length;
1340 return tr_peerIoFlush( io, TR_UP, byteCount );