Track BufferIterator changes in libcore

Addition of a new method pos().

Bug: 31008728
Test: make
Change-Id: Id5fcb13104a8580ffaa7d4f8d3c473fe14ac5ccd
This commit is contained in:
Neil Fuller
2016-12-09 14:59:26 +00:00
parent 21ed56daac
commit 5ba69e46ed

View File

@@ -39,6 +39,11 @@ public class BridgeBufferIterator extends BufferIterator {
mByteBuffer.position(offset);
}
@Override
public int pos() {
return mByteBuffer.position();
}
@Override
public void skip(int byteCount) {
int newPosition = mByteBuffer.position() + byteCount;