Lines Matching defs:offset
67 /** the offset of the next byte to dump */
126 public void parsed(ByteArray bytes, int offset, int len, String human) {
127 offset = bytes.underlyingOffset(offset, getBytes());
131 if (offset < at) {
132 println("<dump skipped backwards to " + Hex.u4(offset) + ">");
133 at = offset;
134 } else if (offset > at) {
135 String hex = rawBytes ? hexDump(at, offset - at) : "";
136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) + ">"));
137 at = offset;
140 String hex = rawBytes ? hexDump(offset, len) : "";
146 public void startParsingMember(ByteArray bytes, int offset, String name,
152 public void endParsingMember(ByteArray bytes, int offset, String name,
158 * Gets the current dump cursor (that is, the offset of the expected
168 * Sets the dump cursor to the indicated offset in the given array.
171 * @param offset {@code >= 0;} offset into the array
173 protected final void setAt(ByteArray arr, int offset) {
174 at = arr.underlyingOffset(offset, bytes);
259 * @param offset offset to start dumping at
263 protected final String hexDump(int offset, int len) {
264 return Hex.dump(bytes, offset, len, offset, hexCols, 4);