Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
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 = [];