Package org.iq80.snappy
Class SlowMemory
java.lang.Object
org.iq80.snappy.SlowMemory
- All Implemented Interfaces:
Memory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyLong(byte[] src, int srcIndex, byte[] dest, int destIndex) voidcopyMemory(byte[] input, int inputIndex, byte[] output, int outputIndex, int length) booleanintloadByte(byte[] data, int index) intloadInt(byte[] data, int index) longloadLong(byte[] data, int index) intlookupShort(short[] data, int index)
-
Constructor Details
-
SlowMemory
SlowMemory()
-
-
Method Details
-
fastAccessSupported
public boolean fastAccessSupported()- Specified by:
fastAccessSupportedin interfaceMemory
-
lookupShort
public int lookupShort(short[] data, int index) - Specified by:
lookupShortin interfaceMemory
-
loadByte
public int loadByte(byte[] data, int index) -
loadInt
public int loadInt(byte[] data, int index) -
copyLong
public void copyLong(byte[] src, int srcIndex, byte[] dest, int destIndex) -
loadLong
public long loadLong(byte[] data, int index) -
copyMemory
public void copyMemory(byte[] input, int inputIndex, byte[] output, int outputIndex, int length) - Specified by:
copyMemoryin interfaceMemory
-