예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 public override void Serialize(MemoryStream stream)
 {
     data.Serialize(stream);
 }