Lines Matching defs:prefixed
77 CBS data, prefixed;
80 ASSERT_TRUE(CBS_get_u8_length_prefixed(&data, &prefixed));
81 EXPECT_EQ(1u, CBS_len(&prefixed));
82 ASSERT_TRUE(CBS_get_u8(&prefixed, &u8));
84 ASSERT_TRUE(CBS_get_u16_length_prefixed(&data, &prefixed));
85 EXPECT_EQ(2u, CBS_len(&prefixed));
86 ASSERT_TRUE(CBS_get_u16(&prefixed, &u16));
88 ASSERT_TRUE(CBS_get_u24_length_prefixed(&data, &prefixed));
89 EXPECT_EQ(3u, CBS_len(&prefixed));
90 ASSERT_TRUE(CBS_get_u24(&prefixed, &u32));
98 CBS data, prefixed;
101 EXPECT_FALSE(CBS_get_u8_length_prefixed(&data, &prefixed));
104 EXPECT_FALSE(CBS_get_u16_length_prefixed(&data, &prefixed));
107 EXPECT_FALSE(CBS_get_u24_length_prefixed(&data, &prefixed));
383 TEST(CBBTest, Prefixed) {