Lines Matching refs:decode
199 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 2); in TEST_F()
204 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 127); in TEST_F()
209 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 128); in TEST_F()
214 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 129); in TEST_F()
219 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 130); in TEST_F()
224 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 12857); in TEST_F()
234 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 2); in TEST_F()
239 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -2); in TEST_F()
244 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 127); in TEST_F()
249 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -127); in TEST_F()
254 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 128); in TEST_F()
259 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -128); in TEST_F()
264 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 129); in TEST_F()
269 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -129); in TEST_F()
279 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 0); in TEST_F()
284 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 1); in TEST_F()
290 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 16256); in TEST_F()
392 ASSERT_EQ(leb128::decode<int64_t>(p), 0); in TEST_F()
397 ASSERT_EQ(leb128::decode<int64_t>(p), 1); in TEST_F()
402 ASSERT_EQ(leb128::decode<int64_t>(p), -1); in TEST_F()
407 ASSERT_EQ(leb128::decode<int64_t>(p), 0x3c); in TEST_F()
467 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value); in TEST_F()
474 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value2); in TEST_F()
481 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), value3); in TEST_F()
488 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), -value3); in TEST_F()
505 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 154452); in TEST_F()
521 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 154452); in TEST_F()
525 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 154452); in TEST_F()