Record Class SubDirectMemoryVarGen
java.lang.Object
java.lang.Record
ghidra.pcode.emu.jit.gen.var.SubDirectMemoryVarGen
- Record Components:
byteOffset- the number of bytes to the right of the subpiecemaxByteSize- the size of the subpiece
- All Implemented Interfaces:
DirectMemoryVarGen, MemoryVarGen<JitDirectMemoryVar>, SubMemoryVarGen<JitDirectMemoryVar>, ValGen<JitDirectMemoryVar>, VarGen<JitDirectMemoryVar>
public record SubDirectMemoryVarGen(int byteOffset, int maxByteSize)
extends Record
implements SubMemoryVarGen<JitDirectMemoryVar>, DirectMemoryVarGen
The generator for a subpiece of a direct memory variable
-
Nested Class Summary
Nested classes/interfaces inherited from interface VarGen
VarGen.BlockTransition<THIS> -
Constructor Summary
ConstructorsConstructorDescriptionSubDirectMemoryVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubDirectMemoryVarGenrecord 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 interface DirectMemoryVarGen
genReadToBool, genWriteFromArray, genWriteFromOpnd, genWriteFromStackMethods inherited from interface MemoryVarGen
genReadLegToStack, genReadToArray, genReadToOpnd, genReadToStack, genValInitMethods inherited from interface SubMemoryVarGen
getVarnode, subpiece
-
Constructor Details
-
SubDirectMemoryVarGen
public SubDirectMemoryVarGen(int byteOffset, int maxByteSize) Creates an instance of aSubDirectMemoryVarGenrecord class.- Parameters:
byteOffset- the value for thebyteOffsetrecord componentmaxByteSize- the value for themaxByteSizerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
byteOffset
public int byteOffset()Returns the value of thebyteOffsetrecord component.- Specified by:
byteOffsetin interfaceSubMemoryVarGen<JitDirectMemoryVar>- Returns:
- the value of the
byteOffsetrecord component
-
maxByteSize
public int maxByteSize()Returns the value of themaxByteSizerecord component.- Specified by:
maxByteSizein interfaceSubMemoryVarGen<JitDirectMemoryVar>- Returns:
- the value of the
maxByteSizerecord component
-