How to use the cuint.UINT64.prototype function in cuint

To help you get started, we’ve selected a few cuint examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swift-nav / libsbp / javascript / sbp / sbp.js View on Github external
*/

var assert = require('assert');
var Int64 = require('node-int64');
var UInt64 = require('cuint').UINT64;

var mkBuf = function (size, writer, payload, offset) {
  var b = new Buffer(size);
  b[writer](payload, offset || 0);
  return b;
}

/**
 * Augment UInt64's prototype - it should have toJSON
 */
UInt64.prototype.toJSON = function () {
  return this.toString();
}

/**
 * Parent prototypal class for all SBP message objects.
 */
function SBP (sbp) {
  this.messageType = "raw";
  this.sbp = sbp || {};
  this.fields = {};

  return this;
}

SBP.prototype.fieldSpec = [];

cuint

Unsigned integers for Javascript

MIT
Latest version published 8 years ago

Package Health Score

50 / 100
Full package analysis