Lines Matching refs:ReadBits
127 size_t ReadBits(uint64_t* bits, size_t num_bits) override { in ReadBits() function in spvtools::comp::__anonffc740370111::BitReaderFromString
539 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
541 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST()
543 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST()
545 EXPECT_EQ(22u, reader.ReadBits(&bits, 30)); in TEST()
569 while (reader.ReadBits(&bits, to_read) > 0) { in TEST()
583 EXPECT_EQ(1u, reader.ReadBits(&bits, 1)); in TEST()
585 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
587 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
589 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
593 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
597 EXPECT_EQ(55u, reader.ReadBits(&bits, 64)); in TEST()
608 EXPECT_EQ(1u, reader.ReadBits(&bits, 1)); in TEST()
610 EXPECT_EQ(62u, reader.ReadBits(&bits, 62)); in TEST()
612 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
614 EXPECT_EQ(3u, reader.ReadBits(&bits, 3)); in TEST()
617 EXPECT_EQ(32u, reader.ReadBits(&bits, 32)); in TEST()
621 EXPECT_EQ(28u, reader.ReadBits(&bits, 32)); in TEST()
660 EXPECT_EQ(2u, reader.ReadBits(&bits, 2)); in TEST()
662 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST()
664 EXPECT_EQ(20u, reader.ReadBits(&bits, 20)); in TEST()
666 EXPECT_EQ(22u, reader.ReadBits(&bits, 30)); in TEST()
690 while (reader.ReadBits(&bits, to_read) > 0) { in TEST()
710 while (reader1.ReadBits(&bits1, to_read) > 0) { in TEST()
711 reader2.ReadBits(&bits2, to_read); in TEST()
716 EXPECT_EQ(0u, reader2.ReadBits(&bits2, 1)); in TEST()
730 while (reader1.ReadBits(&bits1, to_read) > 0) { in TEST()
731 reader2.ReadBits(&bits2, to_read); in TEST()
736 EXPECT_EQ(0u, reader2.ReadBits(&bits2, 1)); in TEST()
752 reader.ReadBits(&bits, size_t(num_bits)); in TEST()