/// <summary>
        /// marshal the packet to bytes array.
        /// add TransportHeader(Zero StreamProtocolLength), if not set manually.
        /// </summary>
        /// <returns>the bytes of packet </returns>
        public override byte[] ToBytes()
        {
            byte[] packetBytes = packet.ToBytes();

            return(ArrayUtility.ConcatenateArrays(CifsMessageUtils.ToBytes(packet.TransportHeader), packetBytes));
        }