Class ShadowMemoryMappedFile


  • @Implements(value=libcore.io.MemoryMappedFile.class,
                isInAndroidSdk=false)
    public class ShadowMemoryMappedFile
    extends Object
    This is used by Android to load and inferFromValue time zone information. Robolectric emulates this functionality by proxying to a time zone database file packaged into the android-all jar.
    • Field Detail

      • bytes

        protected byte[] bytes
    • Constructor Detail

      • ShadowMemoryMappedFile

        public ShadowMemoryMappedFile()
    • Method Detail

      • mmapRO

        @Implementation
        public static libcore.io.MemoryMappedFile mmapRO​(String path)
                                                  throws Throwable
        Throws:
        Throwable
      • bigEndianIterator

        @Implementation
        public libcore.io.BufferIterator bigEndianIterator()
      • littleEndianIterator

        @Implementation
        public libcore.io.BufferIterator littleEndianIterator()
      • getHeapBufferIterator

        protected libcore.io.BufferIterator getHeapBufferIterator​(ByteOrder endianness)
      • size

        @Implementation
        public int size()