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

Represents an item whose parsing format is defined in JSON, whose value corresponds to a series of data in a Hermes bytecode file. More...

Inheritance diagram for Hasmer.HbcEncodedItem:
Hasmer.HbcCjsModuleTableEntry Hasmer.HbcFuncHeader Hasmer.HbcGenericTableEntry Hasmer.HbcHeader Hasmer.HbcOverflowStringTableEntry Hasmer.HbcSmallStringTableEntry Hasmer.HbcSmallFuncHeader

Static Public Member Functions

static void WriteFromDefinition (HbcWriter writer, JToken def, object value)
 Writes a complex value given the definition and corresponding object. More...
 
static object ReadFromDefinition (HbcReader reader, JToken def)
 Reads a simple value given its definition. More...
 
static T Decode< T > (HbcReader reader, JObject obj)
 Reads a complex value from a stream given its definition. More...
 
static void Encode< T > (HbcWriter writer, JObject obj, T item)
 Encodes a complex value to a stream given its definition. More...
 

Detailed Description

Represents an item whose parsing format is defined in JSON, whose value corresponds to a series of data in a Hermes bytecode file.

Member Function Documentation

◆ Decode< T >()

static T Hasmer.HbcEncodedItem.Decode< T > ( HbcReader  reader,
JObject  obj 
)
inlinestatic

Reads a complex value from a stream given its definition.

Type Constraints
T :HbcEncodedItem 
T :new() 

◆ Encode< T >()

static void Hasmer.HbcEncodedItem.Encode< T > ( HbcWriter  writer,
JObject  obj,
item 
)
inlinestatic

Encodes a complex value to a stream given its definition.

Type Constraints
T :HbcEncodedItem 

◆ ReadFromDefinition()

static object Hasmer.HbcEncodedItem.ReadFromDefinition ( HbcReader  reader,
JToken  def 
)
inlinestatic

Reads a simple value given its definition.

◆ WriteFromDefinition()

static void Hasmer.HbcEncodedItem.WriteFromDefinition ( HbcWriter  writer,
JToken  def,
object  value 
)
inlinestatic

Writes a complex value given the definition and corresponding object.


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