Skip to content

@pumpkin-plugins/static-hermes-runtime API / component/embed-bytecode / renderEmbeddedBytecode

Function: renderEmbeddedBytecode() ​

renderEmbeddedBytecode(bytecodeFileName, byteLength): string

Defined in: component/embed-bytecode.ts:7

Render a C++ header that embeds the Hermes bytecode file with #embed.

Parameters ​

bytecodeFileName ​

string

Bytecode file name, resolved from the header's own directory.

byteLength ​

number

Size of the bytecode file, used to reject an empty compile result.

Returns ​

string

pumpkin-plugins documentation