* Read sub-buffer * 读取子缓冲区
()
| 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) |