private byte[] getBytes(long value, SearchSettings settings) {
		byte[] bytes = new byte[byteSize];
		for (int i = 0; i < byteSize; i++) {
			byte b = (byte) value;
			bytes[i] = b;
			value >>= 8;
		}
		if (settings.isBigEndian()) {
			reverse(bytes);
		}
		return bytes;
	}
{@link SearchFormat} for parsing and display bytes in a float or double format.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/FloatSearchFormat.java