Bug 1368837 - Document that MediaResource::GetCachedDataEnd should return aOffset when out of cache - r=cpearce

MozReview-Commit-ID: JKeuEAjIRxr

--HG--
extra : rebase_source : 93e2883833d47626f8d3abce4a151d93c0c106f1
This commit is contained in:
Gerald Squelart 2017-06-01 11:29:49 +12:00
Родитель 24ad7bda2a
Коммит 861a99455f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -290,8 +290,8 @@ public:
// Returns the offset of the first byte of cached data at or after aOffset,
// or -1 if there is no such cached data.
virtual int64_t GetNextCachedData(int64_t aOffset) = 0;
// Returns the end of the bytes starting at the given offset
// which are in cache.
// Returns the end of the bytes starting at the given offset which are in
// cache. Returns aOffset itself if there are zero bytes available there.
virtual int64_t GetCachedDataEnd(int64_t aOffset) = 0;
// Returns true if all the data from aOffset to the end of the stream
// is in cache. If the end of the stream is not known, we return false.