/** {@inheritDoc} */ @Override public void changeIndent(int indentDelta) { if (!suppressDump) { super.changeIndent(indentDelta); } }
/** {@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; }
/** * Gets the width of the second column of output. * * @return {@code >= 0;} the width of the second column */ protected final int getWidth2() { int w1 = rawBytes ? (getWidth1() + 1) : 0; return width - w1 - (indent * 2); }
/** {@inheritDoc} */ @Override public void parsed(ByteArray bytes, int offset, int len, String human) { offset = bytes.underlyingOffset(offset); boolean rawBytes = getRawBytes(); String hex = rawBytes ? hexDump(offset, len) : ""; print(twoColumns(hex, human)); readBytes += len; }
/** {@inheritDoc} */ @Override public void parsed(ByteArray bytes, int offset, int len, String human) { if (!suppressDump) { super.parsed(bytes, offset, len, human); } }
boolean isStatic = AccessFlags.isStatic(meth.getAccessFlags()); rmeth = Optimizer.optimize(rmeth, BaseDumper.computeParamWidth(meth, isStatic), isStatic, true, advice);
/** {@inheritDoc} */ @Override public void parsed(ByteArray bytes, int offset, int len, String human) { if (!suppressDump) { super.parsed(bytes, offset, len, human); } }
boolean isStatic = AccessFlags.isStatic(meth.getAccessFlags()); rmeth = Optimizer.optimize(rmeth, BaseDumper.computeParamWidth(meth, isStatic), isStatic, true, advice);
/** {@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} */ @Override public void parsed(ByteArray bytes, int offset, int len, String human) { if (!suppressDump) { super.parsed(bytes, offset, len, human); } }
/** {@inheritDoc} */ @Override public void changeIndent(int indentDelta) { if (!suppressDump) { super.changeIndent(indentDelta); } }
/** * Gets the width of the second column of output. * * @return {@code >= 0;} the width of the second column */ protected final int getWidth2() { int w1 = rawBytes ? (getWidth1() + 1) : 0; return width - w1 - (indent * 2); }
boolean isStatic = AccessFlags.isStatic(meth.getAccessFlags()); rmeth = Optimizer.optimize(rmeth, BaseDumper.computeParamWidth(meth, isStatic), isStatic, true, advice);
/** {@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} */ @Override public void parsed(ByteArray bytes, int offset, int len, String human) { if (!suppressDump) { super.parsed(bytes, offset, len, human); } }
/** {@inheritDoc} */ @Override public void changeIndent(int indentDelta) { if (!suppressDump) { super.changeIndent(indentDelta); } }