public static void putAsUnsigedInt(ByteBuffer buffer, long value)
      throws GeneralSecurityException {
    if (!(0 <= value && value < 0x100000000L)) {
      throw new GeneralSecurityException("Index out of range");
    }
    buffer.putInt((int) value);
  }
Inserts {@code value} as unsigned into into {@code buffer}.

<p>@throws GeneralSecurityException if not 0 <= value < 2^32.
java_src/src/main/java/com/google/crypto/tink/subtle/SubtleUtil.java