Closed Bug 947918 Opened 9 years ago Closed 9 years ago
Support seeking to end of Blob
Currently it's not possible to seek to the end of a BlobView buffer, because seek doesn't accept the length value. This was discovered while working on bug 916850. If you have a buffer of n bytes length and you're at offset 0, reading n bytes will increment the offset to be equal to the buffer length. Seeking n bytes should give the same result. BlobView already contains the function 'advance', which is just a seek that works relative to the current position, and it supports the described behavior.
Hi Paul, Here is a patch for this minor problem that I discovered while working on the OGG meta-data parser.
Attachment #8344638 - Flags: review?(paul)
Hi Anthony, Please merge the pull request on github. Thanks!
Merged in https://github.com/mozilla-b2g/gaia/commit/ebae4e59d2d5f12a9094f30818a888099c07991f Thomas: You can set checkin-needed to get a patch landed.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.