MCPcopy Create free account
hub / github.com/esengine/esengine / readUTFString

Method readUTFString

packages/fairygui/src/utils/ByteBuffer.ts:337–343  ·  view source on GitHub ↗

* Read UTF string (length-prefixed) * 读取 UTF 字符串(带长度前缀)

()

Source from the content-addressed store, hash-verified

335 * 读取 UTF 字符串(带长度前缀)
336 */
337 public readUTFString(): string {
338 const len = this.getUint16();
339 if (len === 0) {
340 return '';
341 }
342 return this.readStringWithLength(len);
343 }
344
345 /**
346 * Read string array

Callers 1

loadPackageMethod · 0.80

Calls 2

getUint16Method · 0.95
readStringWithLengthMethod · 0.95

Tested by

no test coverage detected