Lines Matching defs:bytes
205 // we might need to update the number of bytes available
284 BufferQueue::Get(net_buffer *buffer, tcp_sequence sequence, size_t bytes)
286 TRACE(("BufferQueue@%p::Get(sequence %" B_PRIu32 ", bytes %lu)\n", this,
287 sequence.Number(), bytes));
290 if (bytes == 0)
297 if (tcp_sequence(sequence + bytes) > fLastSequence)
298 bytes = (fLastSequence - sequence).Number();
300 size_t bytesLeft = bytes;
339 /*! Creates a new buffer containing \a bytes bytes from the start of the
344 BufferQueue::Get(size_t bytes, bool remove, net_buffer **_buffer)
346 if (bytes > Available())
347 bytes = Available();
349 if (bytes == 0) {
356 size_t bytesLeft = bytes;
359 if (!remove || buffer->size > bytes) {
408 // We could not remove any bytes from the buffer, so