1
0
Fork 0
mirror of https://github.com/codedread/bitjs synced 2025-10-03 17:49:16 +02:00

Updates to jsdoc for better IDE analysis. A couple other minor tweaks.

This commit is contained in:
Jeff Schiller 2021-12-12 11:01:41 -08:00
parent 843caf4e61
commit 2a90e32c89
7 changed files with 69 additions and 18 deletions

View file

@ -23,7 +23,15 @@ export const ByteBuffer =
if (typeof numBytes != typeof 1 || numBytes <= 0) {
throw "Error! ByteBuffer initialized with '" + numBytes + "'";
}
/**
* @type {Uint8Array}
* @public
*/
this.data = new Uint8Array(numBytes);
/**
* @type {number}
* @public
*/
this.ptr = 0;
}