// 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/puff_reader.h" #include <algorithm> #include <cstring> #include <memory> #include <string> #include <vector> #include "puffin/src/logging.h" namespace puffin { namespace { // Reads a value from the buffer in big-endian mode. inline uint16_t ReadByteArrayToUint16(const uint8_t* buffer) { … } } // namespace bool BufferPuffReader::GetNext(PuffData* data) { … } size_t BufferPuffReader::BytesLeft() const { … } } // namespace puffin