// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_ZUCCHINI_BUFFER_SOURCE_H_ #define COMPONENTS_ZUCCHINI_BUFFER_SOURCE_H_ #include <stddef.h> #include <stdint.h> #include <string.h> #include <initializer_list> #include <type_traits> #include "base/check_op.h" #include "components/zucchini/buffer_view.h" namespace zucchini { // BufferSource acts like an input stream with convenience methods to parse data // from a contiguous sequence of raw data. The underlying ConstBufferView // emulates a cursor to track current read position, and guards against buffer // overrun. Where applicable, BufferSource should be passed by pointer to // maintain cursor progress across reads. class BufferSource : public ConstBufferView { … }; } // namespace zucchini #endif // COMPONENTS_ZUCCHINI_BUFFER_SOURCE_H_