예제 #1
0
 public bool VisitGuid(GuidDatum d)
 {
     bw.Write(B_GUID);
     byte[] buf = d.Value.ToByteArray();
     bw.Write(buf, 0, 16);
     return(true);
 }
예제 #2
0
 private int CompareGuid(GuidDatum x, GuidDatum y)
 {
     byte[] xb = x.Value.ToByteArray();
     byte[] yb = y.Value.ToByteArray();
     for (int i = 0; i < 16; ++i)
     {
         if (xb[i] < yb[i])
         {
             return(-1);
         }
         if (xb[i] > yb[i])
         {
             return(1);
         }
     }
     return(0);
 }
 public string VisitGuid(GuidDatum d)
 {
     return("#g" + d.Value.ToString("B"));
 }
 public State VisitGuid(State state, GuidDatum d) => state;
 public SetDatum VisitGuid(GuidDatum d) => SetDatum.Empty;
 private bool EqualGuid(GuidDatum x, GuidDatum y)
 {
     return(x.Value == y.Value);
 }