Package ghidra.trace.database
Class DBTraceUtils.AbstractOffsetSnapDBFieldCodec<OT extends DBAnnotatedObject>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreFactory.AbstractDBFieldCodec<DBTraceUtils.OffsetSnap,OT,BinaryField>
ghidra.trace.database.DBTraceUtils.AbstractOffsetSnapDBFieldCodec<OT>
- Type Parameters:
OT- the type of the object whose field is encoded/decoded.
- All Implemented Interfaces:
DBCachedObjectStoreFactory.DBFieldCodec<DBTraceUtils.OffsetSnap,OT, BinaryField>
- Direct Known Subclasses:
DBTraceUtils.OffsetThenSnapDBFieldCodec
- Enclosing class:
DBTraceUtils
public abstract static class DBTraceUtils.AbstractOffsetSnapDBFieldCodec<OT extends DBAnnotatedObject>
extends DBCachedObjectStoreFactory.AbstractDBFieldCodec<DBTraceUtils.OffsetSnap,OT,BinaryField>
A (abstract) codec for the offset-snap tuple
-
Field Summary
Fields inherited from class ghidra.util.database.DBCachedObjectStoreFactory.AbstractDBFieldCodec
column, field, fieldType, objectType, valueType -
Constructor Summary
ConstructorsConstructorDescriptionAbstractOffsetSnapDBFieldCodec(Class<OT> objectType, Field field, int column) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract DBTraceUtils.OffsetSnapdecode(byte[] arr) protected voidSame asDBCachedObjectStoreFactory.AbstractDBFieldCodec.load(DBAnnotatedObject, DBRecord), but permits exceptionsprotected voidSame asDBCachedObjectStoreFactory.AbstractDBFieldCodec.store(DBAnnotatedObject, DBRecord), but permits exceptionsprotected abstract byte[]encode(DBTraceUtils.OffsetSnap value) voidstore(DBTraceUtils.OffsetSnap value, BinaryField f) Encode the given field value into the given fieldMethods inherited from class ghidra.util.database.DBCachedObjectStoreFactory.AbstractDBFieldCodec
getFieldType, getObjectType, getValue, getValueType, load, setValue, storeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.util.database.DBCachedObjectStoreFactory.DBFieldCodec
encodeField
-
Constructor Details
-
AbstractOffsetSnapDBFieldCodec
-
-
Method Details
-
doStore
protected void doStore(OT obj, DBRecord record) throws IllegalArgumentException, IllegalAccessException Description copied from class:DBCachedObjectStoreFactory.AbstractDBFieldCodecSame asDBCachedObjectStoreFactory.AbstractDBFieldCodec.store(DBAnnotatedObject, DBRecord), but permits exceptions- Specified by:
doStorein classDBCachedObjectStoreFactory.AbstractDBFieldCodec<DBTraceUtils.OffsetSnap,OT extends DBAnnotatedObject, BinaryField> - Throws:
IllegalArgumentExceptionIllegalAccessException
-
store
Description copied from interface:DBCachedObjectStoreFactory.DBFieldCodecEncode the given field value into the given field- Parameters:
value- the valuef- the field
-
doLoad
protected void doLoad(OT obj, DBRecord record) throws IllegalArgumentException, IllegalAccessException Description copied from class:DBCachedObjectStoreFactory.AbstractDBFieldCodecSame asDBCachedObjectStoreFactory.AbstractDBFieldCodec.load(DBAnnotatedObject, DBRecord), but permits exceptions- Specified by:
doLoadin classDBCachedObjectStoreFactory.AbstractDBFieldCodec<DBTraceUtils.OffsetSnap,OT extends DBAnnotatedObject, BinaryField> - Throws:
IllegalArgumentExceptionIllegalAccessException
-
encode
-
decode
-