Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 #pragma once
3 #include <stdint.h>
5 namespace mp4_demuxer {
7 class Stream {
8 public:
10 // Returns true on success, false on failure.
11 // Writes number of bytes read into out_bytes_read, or 0 on EOS.
12 // Returns true on EOS.
13 virtual bool ReadAt(int64_t offset,
14 uint8_t* buffer,
15 uint32_t count,
16 uint32_t* out_bytes_read) = 0;
18 virtual int64_t Length() const = 0;
19 };
21 } // namespace mp4_demuxer