Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 255 for CHAR (0.03 sec)

  1. android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.collect.Iterables;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Microbenchmark for {@link Splitter#on} with char vs String with length == 1.
     *
     * @author Paul Lindner
     */
    @NullUnmarked
    public class SplitterBenchmark {
      // overall size of string
      @Param({"1", "10", "100", "1000"})
      int length;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        static String unescape(final String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
            final byte[] b = new byte[1];
    
            if (str == null) {
                return null;
            }
    
            len = str.length();
            out = new char[len];
            state = 0;
            for (i = j = 0; i < len; i++) {
                switch (state) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/hash/AbstractByteHasher.java

      public Hasher putLong(long l) {
        ByteBuffer scratch = scratch();
        scratch.putLong(l);
        return update(scratch, Longs.BYTES);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putChar(char c) {
        ByteBuffer scratch = scratch();
        scratch.putChar(c);
        return update(scratch, Chars.BYTES);
      }
    
      private ByteBuffer scratch() {
        if (scratch == null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 12:40:17 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

          }
        }
      }
    
      @AndroidIncompatible // slow
      @GwtIncompatible // Doubles.tryParse
      public void testTryParseAllCodePoints() {
        // Exercise non-ASCII digit test cases and the like.
        char[] tmp = new char[2];
        for (int i = Character.MIN_CODE_POINT; i < Character.MAX_CODE_POINT; i++) {
          Character.toChars(i, tmp, 0);
          checkTryParse(String.copyValueOf(tmp, 0, Character.charCount(i)));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/MoreObjects.java

         *
         * <p>It is strongly encouraged to use {@link #add(String, char)} instead and give value a
         * readable name.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.addValue()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper addValue(char value) {
          return addUnconditionalHolder(String.valueOf(value));
        }
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/io/CharStreamsCopyBenchmark.java

        sb.ensureCapacity(size);
        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
          sb.append((char) (random.nextInt(127 - 9) + 9));
        }
        data = sb.toString();
      }
    
      @Benchmark
      public long timeCopy(int reps) throws IOException {
        long r = 0;
        String localData = data;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmContext.java

                passwordString = this.transportContext.getConfig().getGuestPassword();
            } else {
                char[] passwordChars = this.auth.getPasswordAsCharArray();
                if (passwordChars != null) {
                    passwordString = new String(passwordChars);
                    // Securely wipe the char array immediately after use
                    java.util.Arrays.fill(passwordChars, '\0');
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/MultiReader.java

      private void advance() throws IOException {
        close();
        if (it.hasNext()) {
          current = it.next().openStream();
        }
      }
    
      @Override
      public int read(char[] cbuf, int off, int len) throws IOException {
        checkNotNull(cbuf);
        if (current == null) {
          return -1;
        }
        int result = current.read(cbuf, off, len);
        if (result == -1) {
          advance();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        hasher.putLong(0x0807060504030201L);
        hasher.assertBytes(new byte[] {1, 2, 3, 4, 5, 6, 7, 8});
      }
    
      public void testChar() {
        TestHasher hasher = new TestHasher();
        hasher.putChar((char) 0x0201);
        hasher.assertBytes(new byte[] {1, 2});
      }
    
      public void testString() {
        Random random = new Random();
        for (int i = 0; i < 100; i++) {
          byte[] bytes = new byte[64];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top