()
| 72 | } |
| 73 | |
| 74 | func (m *MockMyOtherValue) Marshal() ([]byte, error) { |
| 75 | buf := new(bytes.Buffer) |
| 76 | if err := binary.Write(buf, binary.BigEndian, m.Value); err != nil { |
| 77 | return nil, err |
| 78 | } |
| 79 | data := buf.Bytes() |
| 80 | return data, nil |
| 81 | } |
| 82 | |
| 83 | func (m *MockMyOtherValue) Unmarshal(data []byte) error { |
| 84 | var decoded int64 |