code: public void packInt(int value) throws IOException {
          ensureAvail(5); //ensure worst case bytes
  
          // Optimize for the common case where value is small. This is particular important where our caller
          // is SerializerBase.SER_STRING.serialize because most chars will be ASCII characters and hence in this range.
          // credit Max Bolingbroke https://github.com/jankotek/MapDB/pull/489
          int shift = (value & ~0x7F); //reuse variable
          if (shift != 0) {
              shift = 31 - Integer.numberOfLeadingZeros(value);
              shift -= shift % 7; // round down to nearest multiple of 7
              while (shift != 0) {
                  buf[pos++] = (byte) ((value >>> shift) & 0x7F);
                  shift -= 7;
              }
          }
          buf[pos++] = (byte) ((value & 0x7F)| 0x80);
      }
docs: TODO remove packed methods