(ReadContext context)
| 65 | } |
| 66 | |
| 67 | public static TimeSpan ReadDuration(ReadContext context) |
| 68 | { |
| 69 | long seconds = context.Reader.ReadVarInt64(); |
| 70 | int nanos = context.Reader.ReadInt32(); |
| 71 | long ticks = checked(seconds * TimeSpan.TicksPerSecond); |
| 72 | return TimeSpan.FromTicks(checked(ticks + (nanos / 100))); |
| 73 | } |
| 74 | |
| 75 | private static (long Seconds, uint Nanos) ToTimestampParts(DateTimeOffset value) |
| 76 | { |
no test coverage detected