Package ghidra.util
Interface ObjectStorage
- All Known Implementing Classes:
ObjectStorageAdapter,ObjectStorageAdapterDB,ObjectStorageStreamAdapter
public interface ObjectStorage
Methods for saving and restoring Strings and Java primitives or arrays of
Strings and primitives. The order in which the puts are done must the
same order in which the gets are done.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the boolean value.bytegetByte()Gets the byte value.byte[]getBytes()Gets the byte array.doubleGets the double value.double[]Gets the double array.floatgetFloat()Gets the float value.float[]Gets the float array.intgetInt()Gets the int value.int[]getInts()Gets the int array.longgetLong()Gets the long value.long[]getLongs()Gets the long array.shortgetShort()Gets the short value.short[]Gets the short array.Gets the String value.String[]Gets the array of StringsvoidputBoolean(boolean value) Store a boolean value.voidputByte(byte value) Store a byte value.voidputBytes(byte[] value) Store a byte array.voidputDouble(double value) Store a double value.voidputDoubles(double[] value) Store a double array value.voidputFloat(float value) Store a float value.voidputFloats(float[] value) Store a float array.voidputInt(int value) Store an integer value.voidputInts(int[] value) Store an integer array.voidputLong(long value) Store a long value.voidputLongs(long[] value) Store a long array.voidputShort(short value) Store a short value.voidputShorts(short[] value) Store a short array.voidStore a String value.voidputStrings(String[] value) Store a String[] value.
-
Method Details
-
putInt
void putInt(int value) Store an integer value.- Parameters:
value- The value in the name,value pair.
-
putByte
void putByte(byte value) Store a byte value.- Parameters:
value- The value in the name,value pair.
-
putShort
void putShort(short value) Store a short value.- Parameters:
value- The value in the name,value pair.
-
putLong
void putLong(long value) Store a long value.- Parameters:
value- The value in the name,value pair.
-
putString
Store a String value.- Parameters:
value- The value in the name,value pair.
-
putBoolean
void putBoolean(boolean value) Store a boolean value.- Parameters:
value- The value in the name,value pair.
-
putFloat
void putFloat(float value) Store a float value.- Parameters:
value- The value in the name,value pair.
-
putDouble
void putDouble(double value) Store a double value.- Parameters:
value- The value in the name,value pair.
-
getInt
int getInt()Gets the int value. -
getByte
byte getByte()Gets the byte value. -
getShort
short getShort()Gets the short value. -
getLong
long getLong()Gets the long value. -
getBoolean
boolean getBoolean()Gets the boolean value. -
getString
String getString()Gets the String value. -
getFloat
float getFloat()Gets the float value. -
getDouble
double getDouble()Gets the double value. -
putInts
void putInts(int[] value) Store an integer array. -
putBytes
void putBytes(byte[] value) Store a byte array. -
putShorts
void putShorts(short[] value) Store a short array. -
putLongs
void putLongs(long[] value) Store a long array. -
putFloats
void putFloats(float[] value) Store a float array. -
putDoubles
void putDoubles(double[] value) Store a double array value. -
putStrings
Store a String[] value. -
getInts
int[] getInts()Gets the int array. -
getBytes
byte[] getBytes()Gets the byte array. -
getShorts
short[] getShorts()Gets the short array. -
getLongs
long[] getLongs()Gets the long array. -
getFloats
float[] getFloats()Gets the float array. -
getDoubles
double[] getDoubles()Gets the double array. -
getStrings
String[] getStrings()Gets the array of Strings
-