MCPcopy Create free account
hub / github.com/brimdata/super / EncodeDuration

Function EncodeDuration

primitive.go:65–67  ·  view source on GitHub ↗
(d nano.Duration)

Source from the content-addressed store, hash-verified

63type TypeOfDuration struct{}
64
65func EncodeDuration(d nano.Duration) scode.Bytes {
66 return EncodeInt(int64(d))
67}
68
69func AppendDuration(bytes scode.Bytes, d nano.Duration) scode.Bytes {
70 return AppendInt(bytes, int64(d))

Callers 3

BuildPrimitiveFunction · 0.92
GenValueFunction · 0.92
buildScodeMethod · 0.92

Calls 1

EncodeIntFunction · 0.85

Tested by

no test coverage detected