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 Type
    Method
    Description
    boolean
    Gets the boolean value.
    byte
    Gets the byte value.
    byte[]
    Gets the byte array.
    double
    Gets the double value.
    double[]
    Gets the double array.
    float
    Gets the float value.
    float[]
    Gets the float array.
    int
    Gets the int value.
    int[]
    Gets the int array.
    long
    Gets the long value.
    long[]
    Gets the long array.
    short
    Gets the short value.
    short[]
    Gets the short array.
    Gets the String value.
    Gets the array of Strings
    void
    putBoolean(boolean value)
    Store a boolean value.
    void
    putByte(byte value)
    Store a byte value.
    void
    putBytes(byte[] value)
    Store a byte array.
    void
    putDouble(double value)
    Store a double value.
    void
    putDoubles(double[] value)
    Store a double array value.
    void
    putFloat(float value)
    Store a float value.
    void
    putFloats(float[] value)
    Store a float array.
    void
    putInt(int value)
    Store an integer value.
    void
    putInts(int[] value)
    Store an integer array.
    void
    putLong(long value)
    Store a long value.
    void
    putLongs(long[] value)
    Store a long array.
    void
    putShort(short value)
    Store a short value.
    void
    putShorts(short[] value)
    Store a short array.
    void
    Store a String value.
    void
    putStrings(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

      void putString(String value)
      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

      void putStrings(String[] value)
      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