Beispiel #1
0
 public static T?ReadCompressedNullableEnum <T>(this IReadBytes stream) where T : struct, Enum
 {
     if (!stream.ReadCompressedBool())
     {
         return(null);
     }
     return(stream.ReadCompressedEnum <T>());
 }
Beispiel #2
0
 public static DateTime ReadCompressedDateTime(this IReadBytes stream)
 {
     return(new DateTime(stream.ReadCompressedLong(), stream.ReadCompressedEnum <DateTimeKind>()));
 }