Package ghidra.pcode.emu.jit.gen.type
Enum Class FloatWriteGen
- All Implemented Interfaces:
TypedAccessGen,Serializable,Comparable<FloatWriteGen>,Constable
The generator for writing floats
This is accomplished by converting to an int and then writing it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateCode(JitCodeGenerator gen, Varnode vn, org.objectweb.asm.MethodVisitor rv) Emit code to access a varnode.static FloatWriteGenReturns the enum constant of this class with the specified name.static FloatWriteGen[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BE
The big-endian instance -
LE
The little-endian instance
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
generateCode
Description copied from interface:TypedAccessGenEmit code to access a varnode.If reading, the result is placed on the JVM stack. If writing, the value is popped from the JVM stack.
If the varnode fits completely in the block (the common case), then this accesses the bytes from the one block, using the method chosen by size. If the varnode extends into the next block, then this will split the varnode into two portions according to machine byte order. Each portion is accessed using the method for the size of that portion. If reading, the results are reassembled into a single value and pushed onto the JVM stack.
- Specified by:
generateCodein interfaceTypedAccessGen- Parameters:
gen- the code generatorvn- the varnoderv- the method visitor
-