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; }
public override void Write(CDSData Data) { agent.SendRequest(CDSOperations.write, fullName, Data.ToRaw()); }
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; } }
public void Write(CDSData data) { Engine e = PrepareEngine(Code); e.Invoke("OnWrite", new Object[]{ data }); }
public abstract void Write(CDSData Data);