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

Function readStatusFromBuffer

packages/fairygui/src/gears/GearBase.ts:109–116  ·  view source on GitHub ↗

* Read status data from buffer * 从缓冲区读取状态数据

(_buffer: ByteBuffer, _cnt: number)

Source from the content-addressed store, hash-verified

107 * 从缓冲区读取状态数据
108 */
109 protected readStatusFromBuffer(_buffer: ByteBuffer, _cnt: number): void {
110 // Override in subclasses to parse specific gear data
111 // Default: skip the data (each page has a string ID)
112 for (let i = 0; i < _cnt; i++) {
113 _buffer.readS(); // page id
114 // Subclass should read its specific data here
115 }
116 }
117
118 /**
119 * Read default status from buffer

Callers

nothing calls this directly

Calls 1

readSMethod · 0.80

Tested by

no test coverage detected