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