#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "media/formats/common/offset_byte_queue.h"
#include "base/check.h"
#include "base/logging.h"
namespace media {
OffsetByteQueue::OffsetByteQueue() : … { … }
OffsetByteQueue::~OffsetByteQueue() = default;
void OffsetByteQueue::Reset() { … }
bool OffsetByteQueue::Push(base::span<const uint8_t> buf) { … }
void OffsetByteQueue::Peek(const uint8_t** buf, int* size) { … }
void OffsetByteQueue::Pop(int count) { … }
void OffsetByteQueue::PeekAt(int64_t offset, const uint8_t** buf, int* size) { … }
bool OffsetByteQueue::Trim(int64_t max_offset) { … }
void OffsetByteQueue::Sync() { … }
}