public override void Serialize(MemoryStream stream) { stamp.Serialize(stream); System.Byte[] id_bytes = System.Text.Encoding.UTF8.GetBytes(id); System.Byte[] id_len_bytes = BitConverter.GetBytes((System.UInt32)id_bytes.Length); stream.Write(id_len_bytes, 0, id_len_bytes.Length); stream.Write(id_bytes, 0, id_bytes.Length); }
public override void Serialize(MemoryStream stream) { header.Serialize(stream); time_ref.Serialize(stream); System.Byte[] source_bytes = System.Text.Encoding.UTF8.GetBytes(source); System.Byte[] source_len_bytes = BitConverter.GetBytes((System.UInt32)source_bytes.Length); stream.Write(source_len_bytes, 0, source_len_bytes.Length); stream.Write(source_bytes, 0, source_bytes.Length); }
public override void Serialize(MemoryStream stream) { System.Byte[] seq_bytes = BitConverter.GetBytes(seq); stream.Write(seq_bytes, 0, seq_bytes.Length); stamp.Serialize(stream); System.Byte[] frame_id_bytes = System.Text.Encoding.UTF8.GetBytes(frame_id); System.Byte[] frame_id_len_bytes = BitConverter.GetBytes((System.UInt32)frame_id_bytes.Length); stream.Write(frame_id_len_bytes, 0, frame_id_len_bytes.Length); stream.Write(frame_id_bytes, 0, frame_id_bytes.Length); }
public override void Serialize(MemoryStream stream) { data.Serialize(stream); }