MCPcopy Index your code
hub / github.com/vmihailenco/msgpack / EncodeDuration

Method EncodeDuration

encode.go:254–256  ·  view source on GitHub ↗
(d time.Duration)

Source from the content-addressed store, hash-verified

252}
253
254func (e *Encoder) EncodeDuration(d time.Duration) error {
255 return e.EncodeInt(int64(d))
256}
257
258func (e *Encoder) writeCode(c byte) error {
259 return e.w.WriteByte(c)

Callers

nothing calls this directly

Calls 1

EncodeIntMethod · 0.95

Tested by

no test coverage detected