* Write the script to the writer with the script size as VARINT * prepended.
(writer: Writer)
| 46 | * prepended. |
| 47 | **/ |
| 48 | public writeWithSize(writer: Writer) { |
| 49 | writeVarSize(this.bytecode.length, writer); |
| 50 | writer.putBytes(this.bytecode); |
| 51 | } |
| 52 | |
| 53 | public static readWithSize(bytes: Bytes) { |
| 54 | const size = readVarSize(bytes); |
no test coverage detected