ReadDuration reads a time.Duration from the reader
()
| 647 | |
| 648 | // ReadDuration reads a time.Duration from the reader |
| 649 | func (m *Reader) ReadDuration() (d time.Duration, err error) { |
| 650 | i, err := m.ReadInt64() |
| 651 | return time.Duration(i), err |
| 652 | } |
| 653 | |
| 654 | // ReadInt64 reads an int64 from the reader |
| 655 | func (m *Reader) ReadInt64() (i int64, err error) { |