// 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 #ifndef MEDIA_BASE_BYTE_QUEUE_H_ #define MEDIA_BASE_BYTE_QUEUE_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include "base/containers/span.h" #include "base/process/memory.h" #include "media/base/media_export.h" namespace media { // Represents a queue of bytes. Data is added to the end of the queue via an // Push() call and removed via Pop(). The contents of the queue can be observed // via the Peek() method. // // This class manages the underlying storage of the queue and tries to minimize // the number of buffer copies when data is appended and removed. class MEDIA_EXPORT ByteQueue { … }; } // namespace media #endif // MEDIA_BASE_BYTE_QUEUE_H_