Class ShadowMemoryMappedFile.RoboBufferIterator

  • Enclosing class:
    ShadowMemoryMappedFile

    protected static class ShadowMemoryMappedFile.RoboBufferIterator
    extends libcore.io.BufferIterator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer buffer  
    • Constructor Summary

      Constructors 
      Constructor Description
      RoboBufferIterator​(byte[] buffer, java.nio.ByteOrder order)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int pos()  
      byte readByte()  
      void readByteArray​(byte[] dst, int dstOffset, int byteCount)  
      int readInt()  
      void readIntArray​(int[] dst, int dstOffset, int intCount)  
      short readShort()  
      void seek​(int offset)  
      void skip​(int byteCount)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • buffer

        protected final java.nio.ByteBuffer buffer
    • Constructor Detail

      • RoboBufferIterator

        public RoboBufferIterator​(byte[] buffer,
                                  java.nio.ByteOrder order)
    • Method Detail

      • seek

        public void seek​(int offset)
        Specified by:
        seek in class libcore.io.BufferIterator
      • skip

        public void skip​(int byteCount)
        Specified by:
        skip in class libcore.io.BufferIterator
      • pos

        public int pos()
        Specified by:
        pos in class libcore.io.BufferIterator
      • readByteArray

        public void readByteArray​(byte[] dst,
                                  int dstOffset,
                                  int byteCount)
        Specified by:
        readByteArray in class libcore.io.BufferIterator
      • readByte

        public byte readByte()
        Specified by:
        readByte in class libcore.io.BufferIterator
      • readInt

        public int readInt()
        Specified by:
        readInt in class libcore.io.BufferIterator
      • readIntArray

        public void readIntArray​(int[] dst,
                                 int dstOffset,
                                 int intCount)
        Specified by:
        readIntArray in class libcore.io.BufferIterator
      • readShort

        public short readShort()
        Specified by:
        readShort in class libcore.io.BufferIterator