hasmer
Public Member Functions | Static Public Member Functions | Properties | List of all members
Hasmer.HbcInstructionOperand Class Reference

Represents an operand of Hermes bytecode instruction. More...

Public Member Functions

void ToWriter (BinaryWriter writer)
 Writes the operand to a stream of binary data. More...
 
GetValue< T > ()
 Returns the value as the given type. More...
 
GetResolvedValue< T > (HbcFile file)
 Returns the value, or is the value is a string, the string the value points to. More...
 
string ToDisassembly (HbcFile file)
 Converts the operand to a human-readable format used for disassembly. More...
 

Static Public Member Functions

static HbcInstructionOperand FromReader (BinaryReader reader, HbcInstructionOperandType type)
 Reads the operand from a stream of binary data. More...
 

Properties

HbcInstructionOperandType Type [get, set]
 The type of operand that is represented by the object. More...
 
PrimitiveValue Value [get, set]
 The raw value of the object, represented as a PrimitiveValue to preserve type information.
Is is highly recommended to use GetValue<T> and GetResolvedValue<T>(HbcFile) instead of accessing this property directly. Use with caution. More...
 

Detailed Description

Represents an operand of Hermes bytecode instruction.

Member Function Documentation

◆ FromReader()

static HbcInstructionOperand Hasmer.HbcInstructionOperand.FromReader ( BinaryReader  reader,
HbcInstructionOperandType  type 
)
inlinestatic

Reads the operand from a stream of binary data.

◆ GetResolvedValue< T >()

T Hasmer.HbcInstructionOperand.GetResolvedValue< T > ( HbcFile  file)
inline

Returns the value, or is the value is a string, the string the value points to.

◆ GetValue< T >()

T Hasmer.HbcInstructionOperand.GetValue< T > ( )
inline

Returns the value as the given type.

◆ ToDisassembly()

string Hasmer.HbcInstructionOperand.ToDisassembly ( HbcFile  file)
inline

Converts the operand to a human-readable format used for disassembly.

◆ ToWriter()

void Hasmer.HbcInstructionOperand.ToWriter ( BinaryWriter  writer)
inline

Writes the operand to a stream of binary data.

Property Documentation

◆ Type

HbcInstructionOperandType Hasmer.HbcInstructionOperand.Type
getset

The type of operand that is represented by the object.

◆ Value

PrimitiveValue Hasmer.HbcInstructionOperand.Value
getset

The raw value of the object, represented as a PrimitiveValue to preserve type information.
Is is highly recommended to use GetValue<T> and GetResolvedValue<T>(HbcFile) instead of accessing this property directly. Use with caution.


The documentation for this class was generated from the following file: