Skip to content

Latest commit

 

History

History
176 lines (96 loc) · 3.67 KB

index.md

File metadata and controls

176 lines (96 loc) · 3.67 KB

Table of Contents

index.js:6-12

a cbor decoder for the objects

Type: Object

ID

index.js:43-66

an ID

Parameters

  • id

FunctionRef

index.js:71-132

A function reference

Parameters

copy

index.js:124-131

Creates a copy of the funcRef

Returns FunctionRef

ActorRef

index.js:137-177

An actor reference

Parameters

  • id ID the id of the actor
  • modRef ModuleRef the modRef of the actor

getFuncRef

index.js:152-160

return a function reference given the name of the function

Parameters

Returns FunctionRef

ModuleRef

index.js:182-219

A module reference

Parameters

  • id ID the id of the module
  • type Number type id of the module
  • exports Object a map of exported function to params for the function, if any
  • state Object state of the module
  • code Buffer code of the module

Message

index.js:224-256

Extends EventEmitter

This implements Messages for Primea

Parameters

getType

index.js:263-284

returns the type that the object is

Parameters

  • obj any

Returns String

generateId

index.js:293-297

returns the ID of an actor

Parameters

  • id Object
    • id.nonce Number the actor's nonce
    • id.parent ID the actor's parent's ID

Returns ID