public virtual void WriteData(ArtNetBinaryWriter data) { data.WriteNetwork(Protocol, 8); data.WriteNetwork((short)OpCode); //For some reason the poll packet header does not include the version. if (OpCode != ArtNetOpCodes.PollReply) data.WriteNetwork(Version); }
/// <summary> /// 向数据流写入数据 /// </summary> /// <param name="data">ArtNet 二进制写入器</param> public virtual void WriteData(ArtNetBinaryWriter data) { data.WriteNetwork(Protocol, 8); data.WriteNetwork((short)OpCode); // 由于某些原因,轮询包头不包括版本 if (OpCode != ArtNetOpCodes.PollReply) { data.WriteNetwork(Version); } }
public override void WriteData(ArtNetBinaryWriter data) { base.WriteData(data); data.Write(IpAddress); data.Write(Port); data.WriteNetwork(FirmwareVersion); data.WriteNetwork(SubSwitch); data.WriteNetwork(Oem); data.Write(UbeaVersion); data.Write((byte)Status); data.Write(EstaCode); data.WriteNetwork(ShortName, 18); data.WriteNetwork(LongName, 64); data.WriteNetwork(NodeReport, 64); data.WriteNetwork(PortCount); data.Write(PortTypes); data.Write(GoodInput); data.Write(GoodOutput); data.Write(SwIn); data.Write(SwOut); data.Write(SwVideo); data.Write(SwMacro); data.Write(SwRemote); data.Write(new byte[3]); data.Write(Style); data.Write(MacAddress); data.Write(BindIpAddress); data.Write(BindIndex); data.Write(Status2); data.Write(new byte[208]); }
public override void WriteData(ArtNetBinaryWriter data) { base.WriteData(data); data.Write(Sequence); data.Write(Physical); data.Write(Universe); data.WriteNetwork(Length); data.Write(DmxData); }
public override void WriteData(ArtNetBinaryWriter data) { base.WriteData(data); data.Write(Filler1); data.Write(Filler2); data.WriteNetwork(OemCode); data.Write(Key); data.Write(SubKey); data.Write(Data); }
public override void WriteData(ArtNetBinaryWriter data) { if (DmxData == null) { throw new ArgumentNullException("DmxData", "Please set the DMX data before attempting to write the packet to a data buffer.."); } base.WriteData(data); data.Write(Sequence); data.Write(Physical); data.Write(Universe); data.WriteNetwork(Length); data.Write(DmxData); }
/// <summary> /// 写入 RDM 数据 /// </summary> /// <param name="data">ArtNet 二进制写入器</param> public override void WriteData(ArtNetBinaryWriter data) { base.WriteData(data); var writer = new ArtNetBinaryWriter(data.BaseStream); data.Write(RdmVersion); data.Write(Port); data.Write(new byte[7]); data.Write(Net); data.Write(Command); data.Write(Universe); writer.WriteNetwork(UIdTotal); data.Write(BlockCount); data.Write((byte)Devices.Count); foreach (UId id in Devices) { writer.Write(id); } }