Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for bufferSize (0.22 sec)

  1. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        final int chunkSize;
        final int bufferSize;
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        int processCalled = 0;
        boolean remainingCalled = false;
    
        Sink(int chunkSize, int bufferSize) {
          super(chunkSize, bufferSize);
          this.chunkSize = chunkSize;
          this.bufferSize = bufferSize;
        }
    
        Sink(int chunkSize) {
          super(chunkSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        final int chunkSize;
        final int bufferSize;
        final ByteArrayOutputStream out = new ByteArrayOutputStream();
    
        int processCalled = 0;
        boolean remainingCalled = false;
    
        Sink(int chunkSize, int bufferSize) {
          super(chunkSize, bufferSize);
          this.chunkSize = chunkSize;
          this.bufferSize = bufferSize;
        }
    
        Sink(int chunkSize) {
          super(chunkSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

        T[] castBuffer = (T[]) buffer;
        sort(castBuffer, 0, bufferSize, comparator);
        if (bufferSize > k) {
          Arrays.fill(buffer, k, buffer.length, null);
          bufferSize = k;
          threshold = buffer[k - 1];
        }
        // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null)
        T[] topK = Arrays.copyOf(castBuffer, bufferSize);
        // we have to support null elements, so no ImmutableList for us
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/ReaderInputStream.java

       */
      ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize) {
        this.reader = checkNotNull(reader);
        this.encoder = checkNotNull(encoder);
        checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize);
        encoder.reset();
    
        charBuffer = CharBuffer.allocate(bufferSize);
        Java8Compatibility.flip(charBuffer);
    
        byteBuffer = ByteBuffer.allocate(bufferSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ReaderInputStream.java

       */
      ReaderInputStream(Reader reader, CharsetEncoder encoder, int bufferSize) {
        this.reader = checkNotNull(reader);
        this.encoder = checkNotNull(encoder);
        checkArgument(bufferSize > 0, "bufferSize must be positive: %s", bufferSize);
        encoder.reset();
    
        charBuffer = CharBuffer.allocate(bufferSize);
        Java8Compatibility.flip(charBuffer);
    
        byteBuffer = ByteBuffer.allocate(bufferSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

            this.controlEncoding = controlEncoding;
        }
    
        public int getBufferSize() {
            return bufferSize;
        }
    
        public void setBufferSize(final int bufferSize) {
            this.bufferSize = bufferSize;
        }
    
        public String getPassiveLocalHost() {
            return passiveLocalHost;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/ProcessHelper.java

                final int bufferSize, final Consumer<String> outputCallback) {
            final ProcessBuilder pb = new ProcessBuilder(cmdList);
            pbCall.accept(pb);
            destroyProcess(sessionId);
            JobProcess jobProcess;
            try {
                jobProcess = new JobProcess(pb.start(), bufferSize, outputCallback);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptorBuilder.java

        }
    
        public PluginDescriptor build(ReaderSupplier readerSupplier, String source) throws PlexusConfigurationException {
            try (BufferedReader br = new BufferedReader(readerSupplier.open(), BUFFER_SIZE)) {
                br.mark(BUFFER_SIZE);
                XMLStreamReader xsr = XMLInputFactory.newFactory().createXMLStreamReader(br);
                xsr.nextTag();
                String nsUri = xsr.getNamespaceURI();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/ByteStreams.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public final class ByteStreams {
    
      private static final int BUFFER_SIZE = 8192;
    
      /** Creates a new byte array for buffering reads or writes. */
      static byte[] createBuffer() {
        return new byte[BUFFER_SIZE];
      }
    
      /**
       * There are three methods to implement {@link FileChannel#transferTo(long, long,
       * WritableByteChannel)}:
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top