OpCode is the second 8 bits on the wire.
()
| 18 | |
| 19 | // OpCode is the second 8 bits on the wire. |
| 20 | func (mt MessageCode) OpCode() uint8 { |
| 21 | return uint8(mt & 0xff) |
| 22 | } |
| 23 | |
| 24 | func (mt *MessageCode) SetObjectType(oc uint8) { |
| 25 | *mt = (*mt & 0x00ff) | (MessageCode(oc) << 8) |