/** {@inheritDoc} */ public void parsed(ByteArray bytes, int offset, int len, String human) { offset = bytes.underlyingOffset(offset, getBytes()); boolean rawBytes = getRawBytes(); if (offset < at) { println("<dump skipped backwards to " + Hex.u4(offset) + ">"); at = offset; } else if (offset > at) { String hex = rawBytes ? hexDump(at, offset - at) : ""; print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); at = offset; } String hex = rawBytes ? hexDump(offset, len) : ""; print(twoColumns(hex, human)); at += len; }
/** {@inheritDoc} */ public void parsed(ByteArray bytes, int offset, int len, String human) { offset = bytes.underlyingOffset(offset, getBytes()); boolean rawBytes = getRawBytes(); if (offset < at) { println("<dump skipped backwards to " + Hex.u4(offset) + ">"); at = offset; } else if (offset > at) { String hex = rawBytes ? hexDump(at, offset - at) : ""; print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); at = offset; } String hex = rawBytes ? hexDump(offset, len) : ""; print(twoColumns(hex, human)); at += len; }
/** {@inheritDoc} */ public void parsed(ByteArray bytes, int offset, int len, String human) { offset = bytes.underlyingOffset(offset, getBytes()); boolean rawBytes = getRawBytes(); if (offset < at) { println("<dump skipped backwards to " + Hex.u4(offset) + ">"); at = offset; } else if (offset > at) { String hex = rawBytes ? hexDump(at, offset - at) : ""; print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); at = offset; } String hex = rawBytes ? hexDump(offset, len) : ""; print(twoColumns(hex, human)); at += len; }
/** {@inheritDoc} */ public void parsed(ByteArray bytes, int offset, int len, String human) { offset = bytes.underlyingOffset(offset, getBytes()); boolean rawBytes = getRawBytes(); if (offset < at) { println("<dump skipped backwards to " + Hex.u4(offset) + ">"); at = offset; } else if (offset > at) { String hex = rawBytes ? hexDump(at, offset - at) : ""; print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">")); at = offset; } String hex = rawBytes ? hexDump(offset, len) : ""; print(twoColumns(hex, human)); at += len; }