Пример #1
0
 public static void Serialize(this StoragePremitive p, DSWriter w)
 {
     if(p == null) {
         w.Write(Collections.AsEnumerable(TypeIdentifier.Null));
     } else {
         p.SerializeNonNull(w);
     }
 }
Пример #2
0
 public override void SerializeNonNull(DSWriter output)
 {
     output.Write(Type);
     output.Write(value);
 }
Пример #3
0
 public override void SerializeNonNull(DSWriter output)
 {
     output.Write(Type);
     output.Write7bUInt((uint)data.Length);
     output.Write(data);
 }