Home
last modified time | relevance | path

Searched refs:major_type (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/serde_cbor/src/value/
Dmod.rs85 if self.major_type() != other.major_type() { in cmp()
86 return self.major_type().cmp(&other.major_type()); in cmp()
135 fn major_type(&self) -> u8 { in major_type() method
/external/rust/crates/quiche/deps/boringssl/src/crypto/trust_token/
Dtrust_token.c482 static int add_cbor_int_with_type(CBB *cbb, uint8_t major_type, in add_cbor_int_with_type() argument
485 return CBB_add_u8(cbb, value | major_type); in add_cbor_int_with_type()
488 return CBB_add_u8(cbb, 0x18 | major_type) && CBB_add_u8(cbb, value); in add_cbor_int_with_type()
491 return CBB_add_u8(cbb, 0x19 | major_type) && CBB_add_u16(cbb, value); in add_cbor_int_with_type()
494 return CBB_add_u8(cbb, 0x1a | major_type) && CBB_add_u32(cbb, value); in add_cbor_int_with_type()
497 return CBB_add_u8(cbb, 0x1b | major_type) && CBB_add_u64(cbb, value); in add_cbor_int_with_type()
/external/boringssl/src/crypto/trust_token/
Dtrust_token.c588 static int add_cbor_int_with_type(CBB *cbb, uint8_t major_type, in add_cbor_int_with_type() argument
591 return CBB_add_u8(cbb, value | major_type); in add_cbor_int_with_type()
594 return CBB_add_u8(cbb, 0x18 | major_type) && CBB_add_u8(cbb, value); in add_cbor_int_with_type()
597 return CBB_add_u8(cbb, 0x19 | major_type) && CBB_add_u16(cbb, value); in add_cbor_int_with_type()
600 return CBB_add_u8(cbb, 0x1a | major_type) && CBB_add_u32(cbb, value); in add_cbor_int_with_type()
603 return CBB_add_u8(cbb, 0x1b | major_type) && CBB_add_u64(cbb, value); in add_cbor_int_with_type()