Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 109 for setLength (0.61 sec)

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

          StringBuilder sb = new StringBuilder();
          for (String comp : components) {
            sb.append(comp);
            sb.append(DELIMITER_STRING);
          }
          if (sb.length() > 0) {
            sb.setLength(sb.length() - DELIMITER_STRING.length());
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

        return result;
      }
    
      // TODO(user): Move this logic to a utility class.
      @JsType(isNative = true, name = "Array", namespace = JsPackage.GLOBAL)
      private interface NativeArray {
        @JsProperty
        void setLength(int length);
      }
    
      static MapMaker tryWeakKeys(MapMaker mapMaker) {
        return mapMaker;
      }
    
      static <E extends Enum<E>> Class<E> getDeclaringClassOrObjectForJ2cl(E e) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jun 10 15:17:16 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. apache-maven/src/assembly/maven/bin/JvmConfigParser.java

                    // Space outside quotes - end of argument
                    if (current.length() > 0) {
                        args.add(current.toString());
                        current.setLength(0);
                    }
                } else {
                    current.append(c);
                }
            }
    
            // Add last argument
            if (current.length() > 0) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 10 16:40:06 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

        for (int k = 0; k < size; k++) {
          // [9-127) includes all ascii non-control characters
          sb.append((char) (random.nextInt(127 - 9) + 9));
        }
        String string = sb.toString();
        sb.setLength(0);
        data = ByteSource.wrap(string.getBytes(charset));
      }
    
      @Benchmark
      public int timeCopy(int reps) throws IOException {
        int r = 0;
        Charset localCharset = charset;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         * Returns the length of data in the buffer.
         *
         * @return the data length
         */
        public int getLength() {
            return deferred.length;
        }
    
        /**
         * Sets the length of data in the buffer.
         *
         * @param length the new data length
         */
        public void setLength(final int length) {
            deferred.length = length;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            assertEquals(expectedLength, smbRandomAccessFile.length());
        }
    
        @Test
        void testSetLength() throws SmbException {
            long newLength = 2048L;
            smbRandomAccessFile.setLength(newLength);
            // Verify length was set (actual behavior depends on implementation)
        }
    
        @Test
        void testSkipBytes() throws SmbException {
            int skipAmount = 100;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                // repository.
    
                plugin = findPluginForPrefix(prefix, session);
            }
    
            int executionIdx = goal.indexOf("@");
            if (executionIdx > 0) {
                goal.setLength(executionIdx);
            }
    
            injectPluginDeclarationFromProject(plugin, project);
    
            // If there is no version to be found then we need to look in the repository metadata for
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Mar 25 09:45:07 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         * Returns the length of data in the buffer.
         *
         * @return the data length
         */
        public int getLength() {
            return this.deferred.length;
        }
    
        /**
         * Sets the length of data in the buffer.
         *
         * @param length the new data length
         */
        public void setLength(final int length) {
            this.deferred.length = length;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                this.responseTable.clear();
            }
        }
    
        @Override
        public void run() {
            try {
                while (this.thread == Thread.currentThread()) {
                    this.in.setLength(this.transportContext.getConfig().getNetbiosRcvBufSize());
    
                    this.socket.setSoTimeout(this.closeTimeout);
                    this.socket.receive(this.in);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CsvExtractor.java

                    }
                } else if (c == delimiter && !inQuotes) {
                    // Field separator
                    fields.add(unquoteField(currentField.toString().trim()));
                    currentField.setLength(0);
                } else {
                    currentField.append(c);
                }
            }
    
            // Add last field
            fields.add(unquoteField(currentField.toString().trim()));
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top