// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include "media/base/bit_reader.h" namespace media { BitReader::BitReader(const uint8_t* data, int size) : … { … } BitReader::~BitReader() = default; bool BitReader::ReadString(int num_bits, std::string* str) { … } int BitReader::GetBytes(int max_nbytes, const uint8_t** out) { … } } // namespace media