示例#1
0
        /// <summary>
        /// Dumps the packet to string form, using hexadecimal as the formatter
        /// </summary>
        /// <returns>hexadecimal representation of the data parsed</returns>
        public string ToHexDump()
        {
            FinalizeWrite();
            //var segment = Segment;
            //return Utility.ToHex(PacketID, segment.Buffer.Array, segment.Offset + HeaderSize, ContentLength);
            var content = ((MemoryStream)BaseStream).ToArray();

            return(WCellUtil.ToHex(PacketId, content, HeaderSize, ContentLength));
        }
示例#2
0
 /// <summary>
 /// Dumps the packet to string form, using hexadecimal as the formatter
 /// </summary>
 /// <returns>hexadecimal representation of the data parsed</returns>
 public string ToHexDump()
 {
     this.FinalizeWrite();
     return(WCellUtil.ToHex(this.PacketId, ((MemoryStream)this.BaseStream).ToArray(), this.HeaderSize,
                            this.ContentLength));
 }
示例#3
0
 /// <summary>
 /// Dumps the packet to string form, using hexadecimal as the formatter
 /// </summary>
 /// <returns>hexadecimal representation of the data parsed</returns>
 public string ToHexDump()
 {
     FinalizeWrite();
     return(WCellUtil.ToHex(PacketId, ((MemoryStream)BaseStream).ToArray(), HeaderSize,
                            ContentLength));
 }
示例#4
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public string ToHexDump()
 {
     return(WCellUtil.ToHex(PacketId, _segment.Buffer.Array, _segment.Offset + _offset, Length));
 }
示例#5
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public string ToHexDump()
 {
     return(WCellUtil.ToHex(this.PacketId, this._segment.Buffer.Array, this._segment.Offset + this._offset,
                            this.Length));
 }