Write() public method

public Write ( Stream data ) : void
data Stream
return void
Esempio n. 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);
            }
        }
Esempio n. 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);
     }
 }
Esempio n. 3
0
 public override void Write(Stream data)
 {
     Length.Write(data);
     data.Write(Payload, 0, Payload.Length);
 }