Searched refs:addlInfo (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/identity/support/src/ |
D | cppbor.cpp | 46 size_t headerSize(uint64_t addlInfo) { in headerSize() argument 47 if (addlInfo < ONE_BYTE_LENGTH) return 1; in headerSize() 48 if (addlInfo <= std::numeric_limits<uint8_t>::max()) return 2; in headerSize() 49 if (addlInfo <= std::numeric_limits<uint16_t>::max()) return 3; in headerSize() 50 if (addlInfo <= std::numeric_limits<uint32_t>::max()) return 5; in headerSize() 54 uint8_t* encodeHeader(MajorType type, uint64_t addlInfo, uint8_t* pos, const uint8_t* end) { in encodeHeader() argument 55 size_t sz = headerSize(addlInfo); in encodeHeader() 59 *pos++ = type | static_cast<uint8_t>(addlInfo); in encodeHeader() 63 *pos++ = static_cast<uint8_t>(addlInfo); in encodeHeader() 67 return writeBigEndian(static_cast<uint16_t>(addlInfo), pos); in encodeHeader() [all …]
|
/hardware/interfaces/identity/support/include/cppbor/ |
D | cppbor.h | 71 size_t headerSize(uint64_t addlInfo); 78 uint8_t* encodeHeader(MajorType type, uint64_t addlInfo, uint8_t* pos, const uint8_t* end); 86 void encodeHeader(MajorType type, uint64_t addlInfo, EncodeCallback encodeCallback); 96 void encodeHeader(MajorType type, uint64_t addlInfo, OutputIterator iter) { in encodeHeader() argument 97 return encodeHeader(type, addlInfo, [&](uint8_t v) { *iter++ = v; }); in encodeHeader() 186 inline uint8_t* encodeHeader(uint64_t addlInfo, uint8_t* pos, const uint8_t* end) const { in encodeHeader() argument 187 return ::cppbor::encodeHeader(type(), addlInfo, pos, end); in encodeHeader() 193 inline void encodeHeader(uint64_t addlInfo, EncodeCallback encodeCallback) const { in encodeHeader() argument 194 ::cppbor::encodeHeader(type(), addlInfo, encodeCallback); in encodeHeader() 262 size_t encodedSize() const override { return headerSize(addlInfo()); } in encodedSize() [all …]
|