* Returns deserialized data. * @param {SerializedType} data data * @param {Context} context context object * @returns {DeserializedType} deserialized data
(data, context)
| 1234 | * @returns {DeserializedType} deserialized data |
| 1235 | */ |
| 1236 | _deserialize(data, context) { |
| 1237 | const state = new ReadState(data, context, this); |
| 1238 | while (state.currentBuffer !== null) { |
| 1239 | if (typeof state.currentBuffer === "function") { |
| 1240 | state.result.push(this._deserializeLazy(state.currentBuffer, context)); |
| 1241 | state.nextDataItem(); |
| 1242 | } else { |
| 1243 | dispatchTable[state.readU8()](state); |
| 1244 | } |
| 1245 | } |
| 1246 | return state.result; |
| 1247 | } |
| 1248 | } |
| 1249 | |
| 1250 | module.exports = BinaryMiddleware; |
no test coverage detected