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

Function EncodeTime

primitive.go:384–388  ·  view source on GitHub ↗
(t nano.Ts)

Source from the content-addressed store, hash-verified

382type TypeOfTime struct{}
383
384func EncodeTime(t nano.Ts) scode.Bytes {
385 var b [8]byte
386 n := scode.EncodeCountedVarint(b[:], int64(t))
387 return b[:n]
388}
389
390func AppendTime(bytes scode.Bytes, t nano.Ts) scode.Bytes {
391 return AppendInt(bytes, int64(t))

Callers 4

encodeAnyMethod · 0.92
BuildPrimitiveFunction · 0.92
GenValueFunction · 0.92
buildScodeMethod · 0.92

Calls 1

EncodeCountedVarintFunction · 0.92

Tested by

no test coverage detected