5 #ifndef PACKAGER_MEDIA_BASE_OFFSET_BYTE_QUEUE_H_
6 #define PACKAGER_MEDIA_BASE_OFFSET_BYTE_QUEUE_H_
10 #include <packager/macros/classes.h>
11 #include <packager/media/base/byte_queue.h>
28 void Push(
const uint8_t* buf,
int size);
29 void Peek(
const uint8_t** buf,
int* size);
39 void PeekAt(int64_t offset,
const uint8_t** buf,
int* size);
50 bool Trim(int64_t max_offset);
53 int64_t
head() {
return head_; }
56 int64_t
tail() {
return head_ + size_; }
All the methods that are virtual are virtual for mocking.