docs: static int getArrayLengthOfTheField(FieldDefinition fd, BufferObjectDataInput in, int offset) throws IOException {
          int originalPos = in.position();
          try {
              int pos = getStreamPositionOfTheField(fd, in, offset);
              in.position(pos);
              return in.readInt();
          } finally {
              in.position(originalPos);
          }
      }