code: public static final void clearRemaining(ByteBuffer bb)
      {
          if (bb.hasArray())
          {
              Arrays.fill(bb.array(), bb.arrayOffset()+bb.position(), bb.arrayOffset()+bb.limit(), (byte)0);
          }
          else
          {
              int limit = bb.limit();
              for (int ii=bb.position();ii<limit;ii++)
              {
                  bb.put(ii, (byte)0);
              }
          }
      }
docs: Fills data from position to limit with zeroes. Doesn't change position.
  @param bb