5 #ifndef PACKAGER_MEDIA_BASE_OFFSET_BYTE_QUEUE_H_ 6 #define PACKAGER_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 // PACKAGER_MEDIA_BASE_OFFSET_BYTE_QUEUE_H_
All the methods that are virtual are virtual for mocking.