(tree, address = TRANSFER_BUFFER)
| 1193 | } |
| 1194 | __name(marshalNode, "marshalNode"); |
| 1195 | function unmarshalNode(tree, address = TRANSFER_BUFFER) { |
| 1196 | const id = C.getValue(address, "i32"); |
| 1197 | address += SIZE_OF_INT; |
| 1198 | if (id === 0) return null; |
| 1199 | const index = C.getValue(address, "i32"); |
| 1200 | address += SIZE_OF_INT; |
| 1201 | const row = C.getValue(address, "i32"); |
| 1202 | address += SIZE_OF_INT; |
| 1203 | const column = C.getValue(address, "i32"); |
| 1204 | address += SIZE_OF_INT; |
| 1205 | const other = C.getValue(address, "i32"); |
| 1206 | const result = new Node(INTERNAL, { |
| 1207 | id, |
| 1208 | tree, |
| 1209 | startIndex: index, |
| 1210 | startPosition: { row, column }, |
| 1211 | other |
| 1212 | }); |
| 1213 | return result; |
| 1214 | } |
| 1215 | __name(unmarshalNode, "unmarshalNode"); |
| 1216 | function marshalTreeCursor(cursor, address = TRANSFER_BUFFER) { |
| 1217 | C.setValue(address + 0 * SIZE_OF_INT, cursor[0], "i32"); |
no test coverage detected