UintNArray

node v10.24.1
version: 1.0.0
endpointsharetweet
const UintNArray = require('uint-n-array').default; const input = [6, 2, 4, 0, 3, 1, 2, 0, 7]; // UintArray with n=3 const buffer = UintNArray.encode(3, input); console.log(buffer, buffer.byteLength); const decoded = UintNArray.decode(3, buffer); console.log(decoded);
Loading…

no comments

    sign in to comment