0.0.0 • Published 6 years ago

primea-capabilty v0.0.0

Weekly downloads
3
License
MPL-2.0
Repository
github
Last release
6 years ago

SYNOPSIS

NPM Package Build Status Coverage Status

js-standard-style

This implements basic capability de/serialization

INSTALL

npm install primea-capability

USAGE

const Capability = require('primea-capability')
const id = Buffer.alloc(20)
const cap = new Capability(id, 5)

API

constructor

creates a new capability given the id of the process creating it and a "tag"

Parameters

  • id Buffer
  • tag Integer (optional, default 0)

serialize

Serializes the capability

Returns Buffer

deserialize

Deserializes a Buffer and returns a new instance of Capability

Parameters

Returns Object

LICENSE

MPL-2.0