// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "puffin/src/bit_writer.h" #include <algorithm> #include "puffin/src/logging.h" namespace puffin { bool BufferBitWriter::WriteBits(size_t nbits, uint32_t bits) { … } bool BufferBitWriter::WriteBytes( size_t nbytes, const std::function<bool(uint8_t* buffer, size_t count)>& read_fn) { … } bool BufferBitWriter::WriteBoundaryBits(uint8_t bits) { … } bool BufferBitWriter::Flush() { … } size_t BufferBitWriter::Size() const { … } } // namespace puffin