예제 #1
0
 static DateTimeOffset BytesToDateTimeOffset(byte[] buffer, int idx)
 {
     return(UnixStart.AddMilliseconds(BytesToInt64(buffer, 0)));
 }
예제 #2
0
        private DateRangeBound ReadDateRangeBound(byte[] buffer, int offset)
        {
            var millis = EndianBitConverter.ToInt64(false, buffer, offset);

            return(new DateRangeBound(UnixStart.AddMilliseconds(millis), (DateRangePrecision)buffer[offset + 8]));
        }
예제 #3
0
 internal static DateTimeOffset Deserialize(byte[] buffer, int offset)
 {
     return(UnixStart.AddMilliseconds(BeConverter.ToInt64(buffer, offset)));
 }