Package ghidra.util.database
Class DBCachedObjectStoreFactory.PrimitiveCodec.LengthBoundCodec<T>
java.lang.Object
ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec<T>
ghidra.util.database.DBCachedObjectStoreFactory.PrimitiveCodec.LengthBoundCodec<T>
- All Implemented Interfaces:
DBCachedObjectStoreFactory.PrimitiveCodec<T>
- Enclosing interface:
DBCachedObjectStoreFactory.PrimitiveCodec<T>
public static class DBCachedObjectStoreFactory.PrimitiveCodec.LengthBoundCodec<T>
extends DBCachedObjectStoreFactory.PrimitiveCodec.AbstractPrimitiveCodec<T>
A codec which encodes length-value, using the (unbounded) codec for value
-
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
Constructors -
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
-
unbounded
-
-
Constructor Details
-
LengthBoundCodec
-
-
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
-