Exemplo n.º 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));
        }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
0
 /// <summary>
 /// </summary>
 /// <returns></returns>
 public string ToHexDump()
 {
     return(WCellUtil.ToHex(PacketId, _segment.Buffer.Array, _segment.Offset + _offset, Length));
 }
Exemplo n.º 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));
 }