public override void Write(Stream data) { TagId.Write(data); Length.Write(data); for (Int32 i = 0; i < Length.Payload; i++) { Payload[i].Write(data); } }
public override void Write(Stream data) { Length.Write(data); for (Int32 i = 0; i < Length.Payload; i++) { byte[] temp = BitConverter.GetBytes(Payload[i]); if (BitConverter.IsLittleEndian) { Array.Reverse(temp); } data.Write(temp, 0, 4); } }
public override void Write(Stream data) { Length.Write(data); data.Write(Payload, 0, Payload.Length); }