| Index: media/base/bit_reader.h
|
| diff --git a/media/base/bit_reader.h b/media/base/bit_reader.h
|
| index fda854162a64f23478302625af58c8f39dbe8dba..341c7f71d1794cedf9f1d6f57a33cc2b58e9c020 100644
|
| --- a/media/base/bit_reader.h
|
| +++ b/media/base/bit_reader.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef MEDIA_BASE_BIT_READER_H_
|
| #define MEDIA_BASE_BIT_READER_H_
|
|
|
| +#include <string>
|
| +
|
| #include "base/basictypes.h"
|
| #include "base/compiler_specific.h"
|
| #include "base/memory/scoped_ptr.h"
|
| @@ -33,6 +35,10 @@ class MEDIA_EXPORT BitReader
|
| return bit_reader_core_.SkipBits(num_bits);
|
| }
|
|
|
| + // Read |num_bits| of binary data into |str|. |num_bits| must be a multiple
|
| + // of 8. This is not efficient for extracting large strings.
|
| + bool ReadString(int num_bits, std::string* str);
|
| +
|
| int bits_available() const {
|
| return initial_size_ * 8 - bits_read();
|
| }
|
|
|