Lines Matching refs:addlInfo
260 size_t headerSize(uint64_t addlInfo) { in headerSize() argument
261 if (addlInfo < ONE_BYTE_LENGTH) return 1; in headerSize()
262 if (addlInfo <= std::numeric_limits<uint8_t>::max()) return 2; in headerSize()
263 if (addlInfo <= std::numeric_limits<uint16_t>::max()) return 3; in headerSize()
264 if (addlInfo <= std::numeric_limits<uint32_t>::max()) return 5; in headerSize()
268 uint8_t* encodeHeader(MajorType type, uint64_t addlInfo, uint8_t* pos, const uint8_t* end) { in encodeHeader() argument
269 size_t sz = headerSize(addlInfo); in encodeHeader()
273 *pos++ = type | static_cast<uint8_t>(addlInfo); in encodeHeader()
277 *pos++ = static_cast<uint8_t>(addlInfo); in encodeHeader()
281 return writeBigEndian(static_cast<uint16_t>(addlInfo), pos); in encodeHeader()
284 return writeBigEndian(static_cast<uint32_t>(addlInfo), pos); in encodeHeader()
287 return writeBigEndian(addlInfo, pos); in encodeHeader()
294 void encodeHeader(MajorType type, uint64_t addlInfo, EncodeCallback encodeCallback) { in encodeHeader() argument
295 size_t sz = headerSize(addlInfo); in encodeHeader()
298 encodeCallback(type | static_cast<uint8_t>(addlInfo)); in encodeHeader()
302 encodeCallback(static_cast<uint8_t>(addlInfo)); in encodeHeader()
306 writeBigEndian(static_cast<uint16_t>(addlInfo), encodeCallback); in encodeHeader()
310 writeBigEndian(static_cast<uint32_t>(addlInfo), encodeCallback); in encodeHeader()
314 writeBigEndian(addlInfo, encodeCallback); in encodeHeader()