Package org.robolectric.shadows
Class ShadowMemoryMappedFileS
java.lang.Object
org.robolectric.shadows.ShadowMemoryMappedFileS
@Implements(value=com.android.i18n.timezone.internal.MemoryMappedFile.class, isInAndroidSdk=false, minSdk=31) public class ShadowMemoryMappedFileS extends Object
Fork of ShadowMemoryMappedFile to adjust to changed package names of MemoryMappedFile in S.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ShadowMemoryMappedFileS.RoboBufferIterator
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
bytes
-
Constructor Summary
Constructors Constructor Description ShadowMemoryMappedFileS()
-
Method Summary
Modifier and Type Method Description com.android.i18n.timezone.internal.BufferIterator
bigEndianIterator()
void
close()
protected com.android.i18n.timezone.internal.BufferIterator
getHeapBufferIterator(ByteOrder endianness)
com.android.i18n.timezone.internal.BufferIterator
littleEndianIterator()
static com.android.i18n.timezone.internal.MemoryMappedFile
mmapRO(String path)
int
size()
-
Field Details
-
bytes
protected byte[] bytes
-
-
Constructor Details
-
ShadowMemoryMappedFileS
public ShadowMemoryMappedFileS()
-
-
Method Details
-
mmapRO
@Implementation public static com.android.i18n.timezone.internal.MemoryMappedFile mmapRO(String path) throws Throwable- Throws:
Throwable
-
close
- Throws:
Exception
-
bigEndianIterator
-
littleEndianIterator
-
getHeapBufferIterator
protected com.android.i18n.timezone.internal.BufferIterator getHeapBufferIterator(ByteOrder endianness) -
size
-