api.c
void tcmu_seek_in_iovec(struct iovec *iovec, size_t count)
{
	while (count) {
		if (count >= iovec->iov_len) {
			count -= iovec->iov_len;
			iovec->iov_len = 0;
			iovec++;
		} else {
			iovec->iov_base += count;
			iovec->iov_len -= count;
			count = 0;
		}
	}
}
/*
 * Consume an iovec. Count must not exceed the total iovec[] size.
 */
Consume an iovec. Count must not exceed the total iovec[] size.
Consume an iovec . Count must not exceed the total iovec [] size .
void tcmu_seek_in_iovec(struct iovec *iovec, size_t count)
{
	while (count) {
		if (count >= iovec->iov_len) {
			count -= iovec->iov_len;
			iovec->iov_len = 0;
			iovec++;
		} else {
			iovec->iov_base += count;
			iovec->iov_len -= count;
			count = 0;
		}
	}
}
void tcmu_seek_in_iovec ( struct iovec * iovec , size_t count ) { while ( count ) { if ( count >= iovec -> iov_len ) { count -= iovec -> iov_len ; iovec -> iov_len = 0 ; iovec ++ ; } else { iovec -> iov_base += count ; iovec -> iov_len -= count ; count = 0 ; } } }
Consume an iovec.
Consume an iovec .