MCPcopy
hub / github.com/tinylib/msgp / ReadDuration

Method ReadDuration

msgp/read.go:649–652  ·  view source on GitHub ↗

ReadDuration reads a time.Duration from the reader

()

Source from the content-addressed store, hash-verified

647
648// ReadDuration reads a time.Duration from the reader
649func (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
655func (m *Reader) ReadInt64() (i int64, err error) {

Callers 3

FuzzReaderFunction · 0.95
TestReadWriterDurationFunction · 0.95
ReadIntfMethod · 0.95

Calls 1

ReadInt64Method · 0.95

Tested by 2

FuzzReaderFunction · 0.76
TestReadWriterDurationFunction · 0.76