Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ba69e46 authored by Neil Fuller's avatar Neil Fuller
Browse files

Track BufferIterator changes in libcore

Addition of a new method pos().

Bug: 31008728
Test: make
Change-Id: Id5fcb13104a8580ffaa7d4f8d3c473fe14ac5ccd
parent 21ed56da
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -39,6 +39,11 @@ public class BridgeBufferIterator extends BufferIterator {
        mByteBuffer.position(offset);
        mByteBuffer.position(offset);
    }
    }


    @Override
    public int pos() {
        return mByteBuffer.position();
    }

    @Override
    @Override
    public void skip(int byteCount) {
    public void skip(int byteCount) {
        int newPosition = mByteBuffer.position() + byteCount;
        int newPosition = mByteBuffer.position() + byteCount;