Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 979 for buffer (0.03 sec)

  1. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          StringBuilder builder = new StringBuilder();
          CharBuffer buffer = CharBuffer.allocate(100);
          while (reader.read(buffer) != -1) {
            Java8Compatibility.flip(buffer);
            builder.append(buffer);
            Java8Compatibility.clear(buffer);
          }
          return builder.toString();
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/InputStreamThread.java

        }
    
        /**
         * Runs the thread to continuously read lines from the input stream.
         * Each line is processed by the output callback (if provided) and added to the buffer.
         * The buffer is maintained as a circular buffer with the specified size.
         */
        @Override
        public void run() {
            boolean running = true;
            while (running) {
                try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      private val minimumDeflateSize: Long,
    ) : Closeable {
      /** This holds outbound data for compression and masking. */
      private val messageBuffer = Buffer()
    
      /** The [Buffer] of [sink]. Write to this and then flush/emit [sink]. */
      private val sinkBuffer: Buffer = sink.buffer
      private var writerClosed = false
    
      /** Lazily initialized on first use. */
      private var messageDeflater: MessageDeflater? = null
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            assertEquals(1, validator.safeMultiply(1, 1));
    
            // Test exact buffer boundaries
            byte[] buffer = new byte[100];
            validator.validateBufferAccess(buffer, 0, 100); // Exactly full buffer
            validator.validateBufferAccess(buffer, 100, 0); // Zero length at end
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/NetServerEnum2ResponseTest.java

            byte[] buffer = new byte[8];
            int bufferIndex = 0;
    
            SMBUtil.writeInt2(status, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            SMBUtil.writeInt2(0, buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

              closedLatch.countDown()
            }
          }
        }.buffer()
    
      override val sink: BufferedSink =
        object : ForwardingSink(delegate.sink) {
          private var closed = false
    
          override fun close() {
            if (closed) return
            try {
              super.close()
            } finally {
              closedLatch.countDown()
            }
          }
        }.buffer()
    
      val localAddress: InetAddress
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/net/NetShareEnum.java

        }
    
        @Override
        protected int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

        }
    
        @Override
        protected int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                int bytesWritten = context.encode(buffer, 0);
    
                assertEquals(12, bytesWritten);
                assertEquals(3, SMBUtil.readInt2(buffer, 0));
                assertEquals(2, SMBUtil.readInt2(buffer, 2));
                assertEquals(0x01, SMBUtil.readInt2(buffer, 4));
                assertEquals(0x02, SMBUtil.readInt2(buffer, 6));
                assertEquals(0x03, SMBUtil.readInt2(buffer, 8));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

                assertEquals(0, echoResponse.writeBytesWireFormat(buffer, 100));
                assertEquals(0, echoResponse.writeBytesWireFormat(buffer, 500));
            }
    
            @Test
            @DisplayName("Should not modify buffer")
            void testWriteBytesWireFormatNoModification() {
                byte[] buffer = new byte[1024];
                byte[] originalBuffer = buffer.clone();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top