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