git ssb

0+

wanderer🌟 / js-primea-objects



Tree: 94b5daa6362ac3c9f4a4c781894a73ad2c5160c5

Files: 94b5daa6362ac3c9f4a4c781894a73ad2c5160c5 / README.md

1219 bytesRaw

SYNOPSIS

NPM Package
Build Status
Coverage Status

js-standard-style

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

./docs/

LICENSE

MPL-2.0

Built with git-ssb-web