Lines Matching defs:encoded
102 // the additional information is encoded.
105 // the major type of the encoded value.
124 // encoded in CBOR format. We use this as a wrapper for
158 // arbitrary binary data encoded as BYTE_STRING.
197 // Values 0-23 are encoded directly into the additional info of the
203 // Values 24-255 are encoded with one initial byte, followed by the value.
236 void WriteTokenStartTmpl(MajorType type, uint64_t value, C* encoded) {
238 // Values 0-23 are encoded directly into the additional info of the
240 encoded->push_back(EncodeInitialByte(type, /*additional_info=*/value));
244 // Values 24-255 are encoded with one initial byte, followed by the value.
245 encoded->push_back(EncodeInitialByte(type, kAdditionalInformation1Byte));
246 encoded->push_back(value);
251 encoded->push_back(EncodeInitialByte(type, kAdditionalInformation2Bytes));
252 WriteBytesMostSignificantByteFirst<uint16_t>(value, encoded);
257 encoded->push_back(EncodeInitialByte(type, kAdditionalInformation4Bytes));
259 encoded);
263 encoded->push_back(EncodeInitialByte(type, kAdditionalInformation8Bytes));
264 WriteBytesMostSignificantByteFirst<uint64_t>(value, encoded);
268 std::vector<uint8_t>* encoded) {
269 WriteTokenStartTmpl(type, value, encoded);
271 void WriteTokenStart(MajorType type, uint64_t value, std::string* encoded) {
272 WriteTokenStartTmpl(type, value, encoded);
434 // A double is encoded with a specific initial byte
438 // An envelope is encoded with a specific initial byte
715 // With respect to checking the encoded lengths of strings, arrays, etc:
849 // They are mapped into the encoded range of 0 to 2^31-1.