public int getTotalBytesRead()
    {
        return totalBytesRetired + bufferPos;
    }
The total bytes read up to the current position. Calling {@link #resetSizeCounter()} resets this value to zero.
protostuff-core/src/main/java/io/protostuff/CodedInput.java