Package ghidra.util.database
Class DBCachedObjectStoreFactory.PrimitiveCodec.ArrayPrimitiveCodec<E,T>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec<T>
ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.ArrayPrimitiveCodec<E,T>
- Type Parameters:
E- the type of elementsT- the type of the value, i.e., would beE[], except we wantDBCachedObjectStoreFactory.PrimitiveCodec.ArrayPrimitiveCodecto be primitive.
- All Implemented Interfaces:
DBCachedObjectStoreFactory.PrimitiveCodec<T>
- Direct Known Subclasses:
DBCachedObjectStoreFactory.PrimitiveCodec.ArrayObjectCodec
- Enclosing interface:
DBCachedObjectStoreFactory.PrimitiveCodec<T>
public static class DBCachedObjectStoreFactory.PrimitiveCodec.ArrayPrimitiveCodec<E,T>
extends DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec<T>
An implementation of an array codec, using its element codec, where elements can be
primitives
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec
DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec<T>, DBCachedObjectStoreFactory.PrimitiveCodec.ArrayObjectCodec<E>, DBCachedObjectStoreFactory.PrimitiveCodec.ArrayPrimitiveCodec<E,T>, DBCachedObjectStoreFactory.PrimitiveCodec.LengthBoundCodec<T>, DBCachedObjectStoreFactory.PrimitiveCodec.SimplePrimitiveCodec<T> -
Field Summary
FieldsFields inherited from class ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec
selector, valueClassFields inherited from interface ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec
ADDRESS, BOOL, BOOL_ARR, BYTE, BYTE_ARR, CHAR, CHAR_ARR, CODECS_BY_CLASS, CODECS_BY_SELECTOR, INT, INT_ARR, LONG, LONG_ARR, RANGE, SHORT, SHORT_ARR, STRING, STRING_ARR -
Constructor Summary
ConstructorsConstructorDescriptionArrayPrimitiveCodec(Class<T> valueClass, DBCachedObjectStoreFactory.PrimitiveCodec<E> elemCodec) -
Method Summary
Modifier and TypeMethodDescriptiondecode(ByteBuffer buffer) Decode the value from the given buffervoidencode(ByteBuffer buffer, T value) Encode the value into the given bufferMethods inherited from class ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec
getSelector, getValueClass
-
Field Details
-
elemCodec
-
elemClass
-
-
Constructor Details
-
ArrayPrimitiveCodec
public ArrayPrimitiveCodec(Class<T> valueClass, DBCachedObjectStoreFactory.PrimitiveCodec<E> elemCodec)
-
-
Method Details
-
decode
Description copied from interface:DBCachedObjectStoreFactory.PrimitiveCodecDecode the value from the given buffer- Parameters:
buffer- the source buffer- Returns:
- the value
-
encode
Description copied from interface:DBCachedObjectStoreFactory.PrimitiveCodecEncode the value into the given buffer- Parameters:
buffer- the destination buffervalue- the value
-