Lines Matching refs:val
154 EncodedBuffer::writeRawByte(uint8_t val) in writeRawByte() argument
156 *writeBuffer() = val; in writeRawByte()
161 EncodedBuffer::writeRawVarint64(uint64_t val) in writeRawVarint64() argument
166 if ((val & ~0x7F) == 0) { in writeRawVarint64()
167 writeRawByte((uint8_t) val); in writeRawVarint64()
170 writeRawByte((uint8_t)((val & 0x7F) | 0x80)); in writeRawVarint64()
171 val >>= 7; in writeRawVarint64()
177 EncodedBuffer::writeRawVarint32(uint32_t val) in writeRawVarint32() argument
179 uint64_t v =(uint64_t)val; in writeRawVarint32()
184 EncodedBuffer::writeRawFixed32(uint32_t val) in writeRawFixed32() argument
186 writeRawByte((uint8_t) val); in writeRawFixed32()
187 writeRawByte((uint8_t) (val>>8)); in writeRawFixed32()
188 writeRawByte((uint8_t) (val>>16)); in writeRawFixed32()
189 writeRawByte((uint8_t) (val>>24)); in writeRawFixed32()
193 EncodedBuffer::writeRawFixed64(uint64_t val) in writeRawFixed64() argument
195 writeRawByte((uint8_t) val); in writeRawFixed64()
196 writeRawByte((uint8_t) (val>>8)); in writeRawFixed64()
197 writeRawByte((uint8_t) (val>>16)); in writeRawFixed64()
198 writeRawByte((uint8_t) (val>>24)); in writeRawFixed64()
199 writeRawByte((uint8_t) (val>>32)); in writeRawFixed64()
200 writeRawByte((uint8_t) (val>>40)); in writeRawFixed64()
201 writeRawByte((uint8_t) (val>>48)); in writeRawFixed64()
202 writeRawByte((uint8_t) (val>>56)); in writeRawFixed64()
278 uint8_t val = *at(mEp); in readRawByte() local
280 return val; in readRawByte()
286 uint64_t val = 0, shift = 0; in readRawVarint() local
290 val |= (UINT64_C(0x7F) & byte) << shift; in readRawVarint()
294 return val; in readRawVarint()
300 uint32_t val = 0; in readRawFixed32() local
302 val += (uint32_t)readRawByte() << i; in readRawFixed32()
304 return val; in readRawFixed32()
310 uint64_t val = 0; in readRawFixed64() local
312 val += (uint64_t)readRawByte() << i; in readRawFixed64()
314 return val; in readRawFixed64()
318 EncodedBuffer::editRawFixed32(size_t pos, uint32_t val) in editRawFixed32() argument
323 *at(mEp) = (uint8_t) (val >> i); in editRawFixed32()
401 uint64_t val = 0, shift = 0; in readRawVarint() local
404 val |= (INT64_C(0x7F) & byte) << shift; in readRawVarint()
408 return val; in readRawVarint()