Exemple #1
0
 public static CDSData FromRaw(byte[] Raw)
 {
     CDSData ret = new CDSData() { Type = (DataType)Raw[0] };
     ret.Data = new byte[Raw.Length - 1];
     Array.Copy(Raw, 1, ret.Data, 0, ret.Data.Length);
     return ret;
 }
Exemple #2
0
 public override void Write(CDSData Data)
 {
     agent.SendRequest(CDSOperations.write, fullName, Data.ToRaw());
 }
Exemple #3
0
 public override void Write(CDSData Data)
 {
     switch (GetType())
     {
         case NodeType.Hollow:
             break;
         case NodeType.Data:
             WriteRaw(Data.ToRaw());
             break;
         case NodeType.Stream:
             //shitshitshit shitshitshit
             CDSCode.FromRaw(ReadRaw()).Write(Data);
             break;
     }
 }
Exemple #4
0
 public void Write(CDSData data)
 {
     Engine e = PrepareEngine(Code);
     e.Invoke("OnWrite", new Object[]{ data });
 }
Exemple #5
0
 public abstract void Write(CDSData Data);