You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
344 B

const ref = require('ref');
function Salt(buffer, tag)
{
this.tag = tag || '__SPECIFIC';
if (buffer) {
this.buffer = ref.allocCString(buffer);
} else {
this.buffer = null;
}
}
Salt.None = new Salt(null, '__NONE');
Salt.Random = new Salt(null, '__RANDOM');
Salt.Default = new Salt(null, '__DEFAULT');
module.exports = Salt;