(sink *common.ZeroCopySink)
| 39 | } |
| 40 | |
| 41 | func (pr *PrepareRequest) Serialization(sink *common.ZeroCopySink) { |
| 42 | pr.msgData.Serialization(sink) |
| 43 | sink.WriteVarUint(pr.Nonce) |
| 44 | sink.WriteAddress(pr.NextBookkeeper) |
| 45 | sink.WriteVarUint(uint64(len(pr.Transactions))) |
| 46 | for _, t := range pr.Transactions { |
| 47 | t.Serialization(sink) |
| 48 | } |
| 49 | sink.WriteVarBytes(pr.Signature) |
| 50 | } |
| 51 | |
| 52 | func (pr *PrepareRequest) Deserialization(source *common.ZeroCopySource) error { |
| 53 | pr.msgData = ConsensusMessageData{} |
nothing calls this directly
no test coverage detected