Exemple #1
0
        public UInt16 Write(Byte[] buf)
        {
            UInt16 offset = NetPacketHeader.GetHeadLen();

            if (m_datas == null)
            {
            }
            else
            {
                Array.ConstrainedCopy(m_datas, 0, buf, offset, m_datas.Length);
                offset += (UInt16)m_datas.Length;
            }
            m_header.WriteHead(buf);
            return(offset);
        }