Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for getChars (0.1 sec)

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

        // OutOfMemoryError is not far behind
        final int len = string.length();
        final int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
        return new String(array);
      }
    
      @Benchmark
      void mikeRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = mikeRepeat(originalString, count);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        // OutOfMemoryError is not far behind
        final int len = string.length();
        final int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
        return new String(array);
      }
    
      @Benchmark
      void mikeRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = mikeRepeat(originalString, count);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/escape/CharEscaper.java

            dest = growBuffer(dest, destIndex, destSize);
          }
    
          // If we have skipped any characters, we need to copy them now.
          if (charsSkipped > 0) {
            s.getChars(lastEscape, index, dest, destIndex);
            destIndex += charsSkipped;
          }
    
          // Copy the replacement string into the dest buffer as needed.
          if (rlen > 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/escape/CharEscaper.java

            dest = growBuffer(dest, destIndex, destSize);
          }
    
          // If we have skipped any characters, we need to copy them now.
          if (charsSkipped > 0) {
            s.getChars(lastEscape, index, dest, destIndex);
            destIndex += charsSkipped;
          }
    
          // Copy the replacement string into the dest buffer as needed.
          if (rlen > 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/Hexdump.java

                c[ci++] = ' ';
                c[ci++] = ' ';
                c[ci++] = '|';
                System.arraycopy( d, 0, c, ci, 16 );
                ci += 16;
                c[ci++] = '|';
                NL.getChars( 0, NL_LENGTH, c, ci );
                ci += NL_LENGTH;
            } while( si < length );
    
            ps.println( c );
        }
    
    /** 
     * This is an alternative to the <code>java.lang.Integer.toHexString</cod>
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 5.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/escape/UnicodeEscaper.java

              dest = growBuffer(dest, destIndex, destLength);
            }
            // If we have skipped any characters, we need to copy them now.
            if (charsSkipped > 0) {
              s.getChars(unescapedChunkStart, index, dest, destIndex);
              destIndex += charsSkipped;
            }
            if (escaped.length > 0) {
              System.arraycopy(escaped, 0, dest, destIndex, escaped.length);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
        public final void writeChars( String s ) throws SmbException {
            int clen = s.length();
            int blen = 2 * clen;
            byte[] b = new byte[blen];
            char[] c = new char[clen];
            s.getChars( 0, clen, c, 0 );
            for( int i = 0, j = 0; i < clen; i++ ) {
                b[j++] = (byte)(c[i] >>> 8);
                b[j++] = (byte)(c[i] >>> 0);
            }
            write( b, 0, blen );
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        public final void writeChars ( String s ) throws SmbException {
            int clen = s.length();
            int blen = 2 * clen;
            byte[] b = new byte[blen];
            char[] c = new char[clen];
            s.getChars(0, clen, c, 0);
            for ( int i = 0, j = 0; i < clen; i++ ) {
                b[ j++ ] = (byte) ( c[ i ] >>> 8 );
                b[ j++ ] = (byte) ( c[ i ] >>> 0 );
            }
            write(b, 0, blen);
        }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/CharSource.java

       *
       * <ul>
       *   <li>use {@link StringReader} instead of {@link CharSequenceReader}. It is faster since it can
       *       use {@link String#getChars(int, int, char[], int)} instead of copying characters one by
       *       one with {@link CharSequence#charAt(int)}.
       *   <li>use {@link Appendable#append(CharSequence)} in {@link #copyTo(Appendable)} and {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/FileLocationTest.java

            public String getLink () {
                return null;
            }
    
    
            /**
             * {@inheritDoc}
             *
             * @see jcifs.DfsReferralData#getShare()
             */
            @Override
            public String getShare () {
                return this.share;
            }
    
    
            /**
             * {@inheritDoc}
             *
             * @see jcifs.DfsReferralData#getPathConsumed()
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 13:16:07 UTC 2020
    - 23K bytes
    - Viewed (0)
Back to top