protected Object decode(OT obj, byte[] enc) {
			if (enc == null) {
				return null;
			}
			ByteBuffer buf = ByteBuffer.wrap(enc);
			PrimitiveCodec<?> codec = getPrimitiveCodec(obj, buf.get());
			return codec.decode(buf);
		}
A custom codec for field of "variant" type

<p>
This is suitable for use on fields of type {@link Object}; however, only certain types can
actually be encoded. The encoding uses a 1-byte type selector followed by the byte-array
encoded value.
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/DBCachedObjectStoreFactory.java