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.
1 parent ddcdc96 commit c4f6eb7Copy full SHA for c4f6eb7
utils.js
@@ -980,14 +980,14 @@ export class DataStream {
980
981
readNulString(pos, maxLength) {
982
if (!maxLength) maxLength = 1024;
983
- let posToUse = pos === undefined ? self.pos : pos;
+ let posToUse = pos === undefined ? this.pos : pos;
984
let result = "";
985
let c;
986
- while ((c = self.readByte(posToUse++)) !== 0 && --maxLength) {
+ while ((c = this.readByte(posToUse++)) !== 0 && --maxLength) {
987
result += String.fromCharCode(c);
988
}
989
if (maxLength === 0) return "";
990
- if (pos === undefined) self.pos = posToUse;
+ if (pos === undefined) this.pos = posToUse;
991
return result;
992
993
0 commit comments