Ejemplo n.º 1
0
 public byte[] GetBytes()
 {
     using MemoryStream stream = new MemoryStream();
     Header.WriteBytes(stream);
     Question.WriteBytes(stream);
     return(stream.ToArray());
 }
Ejemplo n.º 2
0
        public byte[] GetBytes()
        {
            Resource.Data = GetData();

            using MemoryStream stream = new MemoryStream();
            Header.WriteBytes(stream);
            Resource.WriteBytes(stream);
            return(stream.ToArray());
        }
Ejemplo n.º 3
0
        public byte[] GetBytes()
        {
            Resource.Data = GetData();

            using MemoryStream stream = new MemoryStream();
            Header.WriteBytes(stream);
            Question.WriteBytes(stream);
            Resource.WriteBytes(stream, NameServicePacketHeader.Length);
            return(stream.ToArray());
        }