* Inject properties from serialized data. * @private * @param {Buffer}
(data)
| 3278 | */ |
| 3279 | |
| 3280 | fromRaw(data) { |
| 3281 | const br = bio.read(data); |
| 3282 | |
| 3283 | this.raw = data; |
| 3284 | |
| 3285 | while (br.left()) |
| 3286 | this.code.push(Opcode.fromReader(br)); |
| 3287 | |
| 3288 | return this; |
| 3289 | } |
| 3290 | |
| 3291 | /** |
| 3292 | * Create a script from buffer reader. |
no test coverage detected