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