Write() 공개 메소드

public Write ( Stream data ) : void
data Stream
리턴 void
예제 #1
0
        public override void Write(Stream data)
        {
            TagId.Write(data);
            Length.Write(data);

            for (Int32 i = 0; i < Length.Payload; i++)
            {
                Payload[i].Write(data);
            }
        }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public override void Write(Stream data)
 {
     Length.Write(data);
     data.Write(Payload, 0, Payload.Length);
 }