We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
done
1 parent bdda714 commit f12fef0Copy full SHA for f12fef0
deno.jsonc renamed to deno.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@typescriptplayground/binary-reader",
3
- "version": "0.2.2",
+ "version": "0.3.0",
4
"license": "./LICENSE",
5
"exports": "./src/index.ts",
6
"tasks": {
src/data_reader.ts
@@ -31,6 +31,15 @@ export default class DataReader {
31
return this.bufferData.slice(this.pointer);
32
}
33
34
+ /**
35
+ * This getter returns if the reader has nothing left to read.
36
+ *
37
+ * @returns If the reader is done reading.
38
+ */
39
+ public get done() : boolean {
40
+ return this.pointer == (this.bufferData.byteLength - 1);
41
+ }
42
+
43
/**
44
* This instance function reads `n` bytes and pushes the pointer accordingly.
45
*
0 commit comments