Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 962 for buffers (0.88 sec)

  1. README.md

    - **Thread Safety**: Components support concurrent access
    - **DFS Support**: Distributed File System resolution
    - **Streaming Operations**: Efficient directory listings and file operations
    - **Buffer Caching**: Optimized buffer management
    - **DCE/RPC Protocol**: Support for advanced operations
    
    ## Quick Start
    
    ### Basic Usage
    
    ```java
    import jcifs.CIFSContext;
    import jcifs.context.SingletonContext;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 09:24:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       */
      @Throws(IOException::class)
      fun peekBody(byteCount: Long): ResponseBody {
        val peeked = body.source().peek()
        val buffer = Buffer()
        peeked.request(byteCount)
        buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
        return buffer.asResponseBody(body.contentType(), buffer.size)
      }
    
      @JvmName("-deprecated_body")
      @Deprecated(
        message = "moved to val",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

          val buffer = Buffer().writeString(this, charset)
          return buffer.asResponseBody(finalContentType, buffer.size)
        }
    
        /** Returns a new response body that transmits this byte array. */
        @JvmStatic
        @JvmName("create")
        fun ByteArray.toResponseBody(contentType: MediaType? = null): ResponseBody =
          Buffer()
            .write(this)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // For GCM, last 4 bytes should contain incrementing counter
            ByteBuffer buffer1 = ByteBuffer.wrap(nonce1, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            ByteBuffer buffer2 = ByteBuffer.wrap(nonce2, 12, 4).order(java.nio.ByteOrder.LITTLE_ENDIAN);
            int counter1 = buffer1.getInt();
            int counter2 = buffer2.getInt();
    
            assertEquals(counter1 + 1, counter2, "Counter should increment between nonces");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            // that happens, then we will have buffered bytes that are needed by the SSLSocket!
            // This check is imperfect: it doesn't tell us whether a handshake will succeed, just
            // that it will almost certainly fail because the proxy has sent unexpected data.
            if (!socket.source.buffer.exhausted() || !socket.sink.buffer.exhausted()) {
              throw IOException("TLS tunnel buffered too many bytes!")
            }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

        /** Maximum number of bytes to buffer before reporting a flow control error. */
        private val maxByteCount: Long,
        /**
         * True if either side has cleanly shut down this stream. We will receive no more bytes beyond
         * those already in the buffer.
         */
        internal var finished: Boolean,
      ) : Source {
        /** Buffer to receive data from the network into. Only accessed by the reader thread. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/io/Smb2FlushRequest.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = (byte) (i % 256);
            }
    
            // Set structure size to 2
            SMBUtil.writeInt2(2, buffer, bufferIndex);
    
            // Make a copy of the buffer
            byte[] bufferCopy = buffer.clone();
    
            // Call readBytesWireFormat
            response.readBytesWireFormat(buffer, bufferIndex);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Status
            SMBUtil.writeInt4(0, buffer, headerStart + 8);
            // Command (READ = 0x0008)
            SMBUtil.writeInt2(0x0008, buffer, headerStart + 12);
            // Credit request/response
            SMBUtil.writeInt2(1, buffer, headerStart + 14);
            // Flags
            SMBUtil.writeInt4(0, buffer, headerStart + 16);
            // Next command
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            @Test
            @DisplayName("Should handle malformed buffer gracefully")
            void testMalformedBuffer() {
                // Given - buffer with random data
                byte[] buffer = new byte[10];
                for (int i = 0; i < buffer.length; i++) {
                    buffer[i] = (byte) (Math.random() * 256);
                }
    
                // When & Then
                // Should either read successfully if random data happens to be 4,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top