sodium-javascript/memory.js
2020-06-24 14:01:48 +02:00

15 lines
195 B
JavaScript

/* eslint-disable camelcase */
function sodium_malloc (n) {
return new Uint8Array(n)
}
function sodium_memzero (arr) {
arr.fill(0)
}
module.exports = {
sodium_malloc,
sodium_memzero
}