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

Method WriteDuration

msgp/write.go:374–376  ·  view source on GitHub ↗

WriteDuration writes a time.Duration to the writer

(d time.Duration)

Source from the content-addressed store, hash-verified

372
373// WriteDuration writes a time.Duration to the writer
374func (mw *Writer) WriteDuration(d time.Duration) error {
375 return mw.WriteInt64(int64(d))
376}
377
378// WriteInt64 writes an int64 to the writer
379func (mw *Writer) WriteInt64(i int64) error {

Calls 1

WriteInt64Method · 0.95