(e *encoder, option uint32, reply optionReply)
| 204 | } |
| 205 | |
| 206 | func encodeReply(e *encoder, option uint32, reply optionReply) { |
| 207 | e.writeUint64(repMagic) |
| 208 | e.writeUint32(option) |
| 209 | e.writeUint32(reply.code()) |
| 210 | e.buf = []byte{} |
| 211 | var buf []byte |
| 212 | reply.encode(e) |
| 213 | buf, e.buf = e.buf, nil |
| 214 | e.writeUint32(uint32(len(buf))) |
| 215 | e.write(buf) |
| 216 | } |
| 217 | |
| 218 | const ( |
| 219 | cRepAck = 1 |
no test coverage detected