π | .travis.yml |
π | LICENSE |
π | README.md |
π | docs |
π | index.js |
π | package-lock.json |
π | package.json |
π | tests |
π | utils.js |
README.md
SYNOPSIS
Object helper classes for Primea's system Objects
INSTALL
npm install primea-objects
USAGE
const objects = require('primea-objects')
const id = new objects.ID(Buffer.from([0x1]))
const modRef = new objects.ModuleRef({'name': ['i32']}, id)
const funcRef = rmodRef.getFuncRef('name')
// all objects can be encoded to cbor with borc
const cbor = require('borc')
const encodedModRef = cbor.encode(modRef)
// and decoded with the decoder
objects.decoder.decodeFirst(encodedModRef)
API
LICENSE
Built with git-ssb-web