Package org.robolectric.shadows
Class ShadowMemoryMappedFile.RoboBufferIterator
- java.lang.Object
-
- libcore.io.BufferIterator
-
- org.robolectric.shadows.ShadowMemoryMappedFile.RoboBufferIterator
-
- Enclosing class:
- ShadowMemoryMappedFile
protected static class ShadowMemoryMappedFile.RoboBufferIterator extends libcore.io.BufferIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBuffer
buffer
-
Constructor Summary
Constructors Constructor Description RoboBufferIterator(byte[] buffer, 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)
void
readLongArray(long[] dst, int dstOffset, int longCount)
short
readShort()
void
seek(int offset)
void
skip(int byteCount)
-
-
-
Field Detail
-
buffer
protected final ByteBuffer buffer
-
-
Constructor Detail
-
RoboBufferIterator
public RoboBufferIterator(byte[] buffer, ByteOrder order)
-
-
Method Detail
-
seek
public void seek(int offset)
- Specified by:
seek
in classlibcore.io.BufferIterator
-
skip
public void skip(int byteCount)
- Specified by:
skip
in classlibcore.io.BufferIterator
-
pos
public int pos()
- Specified by:
pos
in classlibcore.io.BufferIterator
-
readByteArray
public void readByteArray(byte[] dst, int dstOffset, int byteCount)
- Specified by:
readByteArray
in classlibcore.io.BufferIterator
-
readByte
public byte readByte()
- Specified by:
readByte
in classlibcore.io.BufferIterator
-
readInt
public int readInt()
- Specified by:
readInt
in classlibcore.io.BufferIterator
-
readIntArray
public void readIntArray(int[] dst, int dstOffset, int intCount)
- Specified by:
readIntArray
in classlibcore.io.BufferIterator
-
readLongArray
public void readLongArray(long[] dst, int dstOffset, int longCount)
- Specified by:
readLongArray
in classlibcore.io.BufferIterator
-
readShort
public short readShort()
- Specified by:
readShort
in classlibcore.io.BufferIterator
-
-