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

Method readBuffer

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

* Read sub-buffer * 读取子缓冲区

()

Source from the content-addressed store, hash-verified

369 * 读取子缓冲区
370 */
371 public readBuffer(): ByteBuffer {
372 const len = this.getUint32();
373 const buffer = new ByteBuffer(this._data.buffer as ArrayBuffer, this._data.byteOffset + this._position, len);
374 buffer.version = this._version;
375 buffer.stringTable = this._stringTable;
376 this._position += len;
377 return buffer;
378 }
379
380 /**
381 * Read Int32 (alias)

Callers 1

loadPackageMethod · 0.80

Calls 1

getUint32Method · 0.95

Tested by

no test coverage detected