public void Serialize(EndianWriter writer)
        {
            // Write out payload first to get its size
            EndianWriter tmpWriter = new EndianWriter();

            SerializeStreamer(tmpWriter);
            byte[] streamerData = tmpWriter.ToBytes();
            StreamerSize = (uint)streamerData.Length;

            StreamerHeader.Serialize(writer);
            writer.WriteLE(StreamerSize);
            writer.Write(streamerData);
        }
예제 #2
0
        public void Serialize(BinaryWriter writer)
        {
            // Write out payload first to get its size
            BinaryWriter tmpWriter = new BinaryWriter(new MemoryStream());

            SerializeStreamer(tmpWriter);
            byte[] streamerData = tmpWriter.ToBytes();
            StreamerSize = (uint)streamerData.Length;

            StreamerHeader.Serialize(writer);
            writer.Write(StreamerSize);
            writer.Write(streamerData);
        }
 public void Serialize(EndianWriter writer)
 {
     StreamerHeader.Serialize(writer);
     ControlHeader.Serialize(writer);
     SerializeStreamer(writer);
 }
예제 #4
0
 public void Serialize(BinaryWriter writer)
 {
     StreamerHeader.Serialize(writer);
     ControlHeader.Serialize(writer);
     SerializeStreamer(writer);
 }