Lines Matching refs:decode
203 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 2); in TEST_F()
208 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 127); in TEST_F()
213 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 128); in TEST_F()
218 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 129); in TEST_F()
223 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 130); in TEST_F()
228 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 12857); 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), -2); 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), -127); 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), -128); in TEST_F()
269 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), 129); in TEST_F()
274 ASSERT_EQ(leb128::decode<int64_t>(buffer, size), -129); in TEST_F()
284 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 0); in TEST_F()
289 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 1); in TEST_F()
295 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 16256); in TEST_F()
397 ASSERT_EQ(leb128::decode<int64_t>(p), 0); in TEST_F()
402 ASSERT_EQ(leb128::decode<int64_t>(p), 1); in TEST_F()
407 ASSERT_EQ(leb128::decode<int64_t>(p), -1); in TEST_F()
412 ASSERT_EQ(leb128::decode<int64_t>(p), 0x3c); in TEST_F()
472 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value); in TEST_F()
479 ASSERT_EQ(leb128::decode<uint64_t>(buffer, decode_size), value2); in TEST_F()
486 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), value3); in TEST_F()
493 ASSERT_EQ(leb128::decode<int64_t>(buffer, decode_size), -value3); in TEST_F()
510 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 154452); in TEST_F()
526 ASSERT_TRUE(leb128::decode<uint64_t>(buffer, size) == 154452); in TEST_F()
530 ASSERT_TRUE(leb128::decode<uint64_t>(p) == 154452); in TEST_F()