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:
parent
843caf4e61
commit
2a90e32c89
7 changed files with 69 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue