5 #ifndef MEDIA_BASE_OFFSET_BYTE_QUEUE_H_
6 #define MEDIA_BASE_OFFSET_BYTE_QUEUE_H_
10 #include "packager/media/base/byte_queue.h"
27 void Push(
const uint8_t* buf,
int size);
28 void Peek(
const uint8_t** buf,
int* size);
38 void PeekAt(int64_t offset,
const uint8_t** buf,
int* size);
49 bool Trim(int64_t max_offset);
52 int64_t
head() {
return head_; }
55 int64_t
tail() {
return head_ + size_; }
72 #endif // MEDIA_BASE_OFFSET_BYTE_QUEUE_H_