public void moveToNext() { bodyOffset += STEP_LENGTH; if (currentIsGlobal || currentIsLocal) headerOffset += HEADER_ELT_LENGTH; updateIsGlobalOrLocal(); }
public void reset() { this.headerOffset = HEADER_SIZE_LENGTH; this.bodyOffset = headerLength; updateIsGlobalOrLocal(); }
private ContextState(ByteBuffer context) { this.context = context; this.headerLength = this.bodyOffset = headerLength(context); this.headerOffset = HEADER_SIZE_LENGTH; updateIsGlobalOrLocal(); }