• Home
  • Raw
  • Download

Lines Matching refs:chunk_length

80                                 size_t chunk_length, size_t max_payload) {  in WriteVariableWidthInternal()  argument
81 assert(chunk_length > 0); in WriteVariableWidthInternal()
82 assert(chunk_length < max_payload); in WriteVariableWidthInternal()
87 writer->WriteBits(0, chunk_length); in WriteVariableWidthInternal()
95 if (payload_written + chunk_length >= max_payload) { in WriteVariableWidthInternal()
104 writer->WriteBits(val, chunk_length); in WriteVariableWidthInternal()
105 payload_written += chunk_length; in WriteVariableWidthInternal()
106 val = val >> chunk_length; in WriteVariableWidthInternal()
117 size_t chunk_length, size_t max_payload) { in ReadVariableWidthInternal() argument
118 assert(chunk_length > 0); in ReadVariableWidthInternal()
119 assert(chunk_length <= max_payload); in ReadVariableWidthInternal()
122 while (payload_read + chunk_length < max_payload) { in ReadVariableWidthInternal()
124 if (reader->ReadBits(&bits, chunk_length) != chunk_length) return false; in ReadVariableWidthInternal()
127 payload_read += chunk_length; in ReadVariableWidthInternal()
149 size_t chunk_length) { in WriteVariableWidthUnsigned() argument
152 WriteVariableWidthInternal(writer, val, chunk_length, sizeof(T) * 8); in WriteVariableWidthUnsigned()
158 size_t chunk_length) { in ReadVariableWidthUnsigned() argument
162 if (!ReadVariableWidthInternal(reader, &val64, chunk_length, sizeof(T) * 8)) in ReadVariableWidthUnsigned()
173 size_t chunk_length, size_t zigzag_exponent) { in WriteVariableWidthSigned() argument
177 chunk_length, sizeof(T) * 8); in WriteVariableWidthSigned()
184 size_t chunk_length, size_t zigzag_exponent) { in ReadVariableWidthSigned() argument
188 if (!ReadVariableWidthInternal(reader, &encoded, chunk_length, sizeof(T) * 8)) in ReadVariableWidthSigned()
201 size_t chunk_length) { in WriteVariableWidthU64() argument
202 WriteVariableWidthUnsigned(this, val, chunk_length); in WriteVariableWidthU64()
206 size_t chunk_length) { in WriteVariableWidthU32() argument
207 WriteVariableWidthUnsigned(this, val, chunk_length); in WriteVariableWidthU32()
211 size_t chunk_length) { in WriteVariableWidthU16() argument
212 WriteVariableWidthUnsigned(this, val, chunk_length); in WriteVariableWidthU16()
215 void BitWriterInterface::WriteVariableWidthS64(int64_t val, size_t chunk_length, in WriteVariableWidthS64() argument
217 WriteVariableWidthSigned(this, val, chunk_length, zigzag_exponent); in WriteVariableWidthS64()
264 size_t chunk_length) { in ReadVariableWidthU64() argument
265 return ReadVariableWidthUnsigned(this, val, chunk_length); in ReadVariableWidthU64()
269 size_t chunk_length) { in ReadVariableWidthU32() argument
270 return ReadVariableWidthUnsigned(this, val, chunk_length); in ReadVariableWidthU32()
274 size_t chunk_length) { in ReadVariableWidthU16() argument
275 return ReadVariableWidthUnsigned(this, val, chunk_length); in ReadVariableWidthU16()
278 bool BitReaderInterface::ReadVariableWidthS64(int64_t* val, size_t chunk_length, in ReadVariableWidthS64() argument
280 return ReadVariableWidthSigned(this, val, chunk_length, zigzag_exponent); in ReadVariableWidthS64()