Package ghidra.pcode.emu.jit.gen.var
Record Class SubMemoryOutVarGen
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.var.SubMemoryOutVarGen
- Record Components:
byteOffset- the number of bytes to the right of the subpiecemaxByteSize- the size of the subpiece
- All Implemented Interfaces:
MemoryOutVarGen,MemoryVarGen<JitMemoryOutVar>,SubMemoryVarGen<JitMemoryOutVar>,ValGen<JitMemoryOutVar>,VarGen<JitMemoryOutVar>
public record SubMemoryOutVarGen(int byteOffset, int maxByteSize)
extends Record
implements SubMemoryVarGen<JitMemoryOutVar>, MemoryOutVarGen
The generator for a subpiece of a memory output variable.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.pcode.emu.jit.gen.var.VarGen
VarGen.BlockTransition<THIS extends JitCompiledPassage> -
Constructor Summary
ConstructorsConstructorDescriptionSubMemoryOutVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubMemoryOutVarGenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebyteOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxByteSizerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.pcode.emu.jit.gen.var.MemoryOutVarGen
genWriteFromArray, genWriteFromOpnd, genWriteFromStackMethods inherited from interface ghidra.pcode.emu.jit.gen.var.MemoryVarGen
genReadLegToStack, genReadToArray, genReadToBool, genReadToOpnd, genReadToStack, genValInitMethods inherited from interface ghidra.pcode.emu.jit.gen.var.SubMemoryVarGen
getVarnode, subpiece
-
Constructor Details
-
SubMemoryOutVarGen
public SubMemoryOutVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubMemoryOutVarGenrecord class.- Parameters:
byteOffset- the value for thebyteOffsetrecord componentmaxByteSize- the value for themaxByteSizerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
byteOffset
public int byteOffset()Returns the value of thebyteOffsetrecord component.- Specified by:
byteOffsetin interfaceSubMemoryVarGen<JitMemoryOutVar>- Returns:
- the value of the
byteOffsetrecord component
-
maxByteSize
public int maxByteSize()Returns the value of themaxByteSizerecord component.- Specified by:
maxByteSizein interfaceSubMemoryVarGen<JitMemoryOutVar>- Returns:
- the value of the
maxByteSizerecord component
-