(b []byte, unix, nanos int64)
| 1216 | } |
| 1217 | |
| 1218 | func encodeTime(b []byte, unix, nanos int64) []byte { |
| 1219 | // Read the unix absolute time. This is the absolute time and is |
| 1220 | // not time zone offset dependent. |
| 1221 | b = append(b, timeMarker) |
| 1222 | b = EncodeVarintAscending(b, unix) |
| 1223 | b = EncodeVarintAscending(b, nanos) |
| 1224 | return b |
| 1225 | } |
| 1226 | |
| 1227 | // DecodeTimeAscending decodes a time.Time value which was encoded using |
| 1228 | // EncodeTime. The remainder of the input buffer and the decoded |
no test coverage detected
searching dependent graphs…