Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 810 for buffer1 (0.22 sec)

  1. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                byte[] buffer = new byte[512];
    
                int bytesWritten = req.writeBytesWireFormat(buffer, 0);
    
                assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size
                assertEquals(3, SMBUtil.readInt2(buffer, 2)); // Lock count
                assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, 8, 24));
    
                // Each lock is 24 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

            @Test
            @DisplayName("Should not modify buffer during write")
            void testWriteDoesNotModifyBuffer() {
                byte[] buffer = new byte[64];
                Arrays.fill(buffer, (byte) 0xAA);
                byte[] originalBuffer = buffer.clone();
    
                notification.writeBytesWireFormat(buffer, 0);
    
                assertArrayEquals(originalBuffer, buffer);
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/jcifs/smb1/dcerpc/rpc.java

                    final int _bufferl = length / 2;
                    final int _buffers = maximum_length / 2;
                    _dst.enc_ndr_long(_buffers);
                    _dst.enc_ndr_long(0);
                    _dst.enc_ndr_long(_bufferl);
                    final int _bufferi = _dst.index;
                    _dst.advance(2 * _bufferl);
    
                    _dst = _dst.derive(_bufferi);
                    for (int _i = 0; _i < _bufferl; _i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/rpc.java

                            throw new NdrException(NdrException.INVALID_CONFORMANCE);
                        }
                        this.buffer = new short[_buffers];
                    }
                    _src = _src.derive(_bufferi);
                    for (int _i = 0; _i < _bufferl; _i++) {
                        this.buffer[_i] = (short) _src.dec_ndr_short();
                    }
                }
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt

    internal fun idnToAscii(host: String): String? {
      val bufferA = Buffer().writeUtf8(host)
      val bufferB = Buffer()
    
      // 1. Map, from bufferA to bufferB.
      while (!bufferA.exhausted()) {
        val codePoint = bufferA.readUtf8CodePoint()
        if (!IDNA_MAPPING_TABLE.map(codePoint, bufferB)) return null
      }
    
      // 2. Normalize, from bufferB to bufferA.
      val normalized = normalizeNfc(bufferB.readUtf8())
      bufferA.writeUtf8(normalized)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacTest.java

            assertThrows(Exception.class, () -> new Pac(pacData, keys));
        }
    
        @Test
        void testZeroBufferCount() throws IOException {
            // Test PAC with zero buffers (missing required buffers)
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 0); // bufferCount = 0
            writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // valid version
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            );
            when(mockNdrBuffer.dec_ndr_small()).thenReturn(4, 5);
            when(mockDeferredNdrBuffer.dec_ndr_long()).thenReturn(5, 0, 5, // name buffer: buffers, 0, bufferl
                    6, 0, 6, // dns_domain buffer: buffers, 0, bufferl
                    7, 0, 7 // dns_forest buffer: buffers, 0, bufferl
            );
            when(mockDeferredNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 'a', (int) (int) (short) 'b', (int) (int) (short) 'c',
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 60.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/BufferCacheImpl.java

         */
        public BufferCacheImpl(final Configuration cfg) {
            this(cfg.getBufferCacheSize(), cfg.getMaximumBufferSize());
        }
    
        /**
         * Constructs a buffer cache with specified parameters.
         *
         * @param maxBuffers the maximum number of buffers to cache
         * @param maxSize the size of each buffer in bytes
         *
         */
        public BufferCacheImpl(final int maxBuffers, final int maxSize) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

      private lateinit var server: MockWebServer
      private lateinit var client: OkHttpClient
    
      @BeforeEach
      fun setUp() {
        // Sockets on some platforms can have large buffers that mean writes do not block when
        // required. These socket factories explicitly set the buffer sizes on sockets created.
        server = MockWebServer()
        server.serverSocketFactory =
          object : DelegatingServerSocketFactory(getDefault()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top