(sink *common.ZeroCopySink, b bool)
| 213 | } |
| 214 | |
| 215 | func EncodeBool(sink *common.ZeroCopySink, b bool) { |
| 216 | sink.WriteByte(BooleanType) |
| 217 | if b { |
| 218 | sink.WriteByte(byte(1)) |
| 219 | } else { |
| 220 | sink.WriteByte(byte(0)) |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | func EncodeH256(sink *common.ZeroCopySink, hash common.Uint256) { |
| 225 | sink.WriteByte(H256Type) |
no test coverage detected