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