code: public static void readLongSequence(ByteBuffer buf, long seqnos[]) {
          byte len=buf.get();
          if(len == 0) {
              seqnos[0]=seqnos[1]=0;
              return;
          }
          byte len1=firstNibble(len), len2=secondNibble(len);
          seqnos[0]=makeLong(buf, len1);
          seqnos[1]=makeLong(buf, len2) + seqnos[0];
      }
docs: Reads 2 compressed longs from buf into seqnos
  <p/>
  Once variable-length encoding has been implemented, this method will probably get dropped as we can simply
  read the 2 longs individually.
  @param buf the buffer to read from
  @param seqnos the array to read the seqnos into, needs to have a length of 2