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