MCPcopy Create free account
hub / github.com/Shazbot/WH3-Mod-Manager / readUTFStringFromBuffer

Function readUTFStringFromBuffer

temp/readPacksWorker.js:166–172  ·  view source on GitHub ↗
(buffer, pos)

Source from the content-addressed store, hash-verified

164 }
165}
166var readUTFStringFromBuffer = function (buffer, pos) {
167 var length = buffer.readInt16LE(pos);
168 pos += 2;
169 // console.log('length is ' + length);
170 // since utf8 is 2 bytes per char
171 return [buffer.subarray(pos, pos + length * 2).toString("utf8"), pos + length * 2];
172};
173var readPack = function (modPath_1) {
174 var args_1 = [];
175 for (var _i = 1; _i < arguments.length; _i++) {

Callers 1

readPackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected