/** * Sets the dump cursor to the indicated offset in the given array. * * @param arr {@code non-null;} array in question * @param offset {@code >= 0;} offset into the array */ protected final void setAt(ByteArray arr, int offset) { at = arr.underlyingOffset(offset, bytes); }
/** * Sets the dump cursor to the indicated offset in the given array. * * @param arr {@code non-null;} array in question * @param offset {@code >= 0;} offset into the array */ protected final void setAt(ByteArray arr, int offset) { at = arr.underlyingOffset(offset, bytes); }
/** * Sets the dump cursor to the indicated offset in the given array. * * @param arr {@code non-null;} array in question * @param offset {@code >= 0;} offset into the array */ protected final void setAt(ByteArray arr, int offset) { at = arr.underlyingOffset(offset, bytes); }
/** * Sets the dump cursor to the indicated offset in the given array. * * @param arr {@code non-null;} array in question * @param offset {@code >= 0;} offset into the array */ protected final void setAt(ByteArray arr, int offset) { at = arr.underlyingOffset(offset, bytes); }
/** {@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} */ 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; }