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