PageSourceSearch

https://ypeng12-noname.hf.space/node_modules/.pnpm/[email protected]/node_modules/jszip/lib/stringReader.js

js ypeng12-noname.hf.space collected 2026-10-03 17:35:12 UTC 1,261 bytes, 39 lines download raw bytes

1import "../../../../../../_virtual/_commonjsHelpers.js";
2import { __require as requireDataReader } from "./dataReader.js";
3import { __require as requireUtils } from "./utils.js";
4var stringReader;
5var hasRequiredStringReader;
6function requireStringReader() {
7  if (hasRequiredStringReader) return stringReader;
8  hasRequiredStringReader = 1;
9  "use strict";
10  var DataReader = requireDataReader();
11  var utils = requireUtils();
12  function StringReader(data, optimizedBinaryString) {
13    this.data = data;
14    if (!optimizedBinaryString) {
15      this.data = utils.string2binary(this.data);
16    }
17    this.length = this.data.length;
18    this.index = 0;
19    this.zero = 0;
20  }
21  StringReader.prototype = new DataReader();
22  StringReader.prototype.byteAt = function(i) {
23    return this.data.charCodeAt(this.zero + i);
24  };
25  StringReader.prototype.lastIndexOfSignature = function(sig) {
26    return this.data.lastIndexOf(sig) - this.zero;
27  };
28  StringReader.prototype.readData = function(size) {
29    this.checkOffset(size);
30    var result = this.data.slice(this.zero + this.index, this.zero + this.index + size);
31    this.index += size;
32    return result;
33  };
34  stringReader = StringReader;
35  return stringReader;
36}
37export {
38  requireStringReader as __require
39};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.