Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 954 for buffer3 (0.31 sec)

  1. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                // Given - first decode
                ByteBuffer buffer1 = ByteBuffer.allocate(32);
                buffer1.order(ByteOrder.LITTLE_ENDIAN);
                buffer1.putLong(1000L);
                buffer1.putLong(500L);
                buffer1.putLong(500L);
                buffer1.putInt(8);
                buffer1.putInt(512);
    
                fileFsFullSizeInfo.decode(buffer1.array(), 0, 32);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        void testMultipleReadsUpdateOffset() {
            byte[] buffer1 = new byte[] { 0x10, 0x00, 0x00, 0x00 }; // 16
            byte[] buffer2 = new byte[] { 0x20, 0x00, 0x00, 0x00 }; // 32
    
            response.readParameterWordsWireFormat(buffer1, 0);
            assertEquals(16L, response.getOffset(), "First read should set offset to 16");
    
            response.readParameterWordsWireFormat(buffer2, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                // First read
                byte[] buffer1 = new byte[60];
                SMBUtil.writeInt2(60, buffer1, 0);
                SMBUtil.writeInt2(1, buffer1, 2);
                SMBUtil.writeInt8(1000, buffer1, 40);
                SMBUtil.writeInt8(500, buffer1, 48);
                SMBUtil.writeInt4(0x01, buffer1, 56);
    
                response.readBytesWireFormat(buffer1, 0);
    
                assertEquals(1, response.getCloseFlags());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  4. 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)
  5. src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java

        }
    
        @Test
        void testReadSetupWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.readSetupWireFormat(buffer, 0, 100);
            assertEquals(0, result);
        }
    
        @Test
        void testReadParametersWireFormat() {
            byte[] buffer = new byte[100];
            int result = response.readParametersWireFormat(buffer, 0, 100);
            assertEquals(0, result);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                NdrShort ndrShort = new NdrShort(50);
                NdrBuffer buffer1 = mock(NdrBuffer.class);
                NdrBuffer buffer2 = mock(NdrBuffer.class);
                when(buffer2.dec_ndr_short()).thenReturn(75);
    
                // When: Performing multiple operations
                ndrShort.encode(buffer1);
                ndrShort.decode(buffer2);
    
                // Then: Should handle both operations correctly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. 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)
  8. src/bufio/bufio.go

    	b.n = 0
    	return nil
    }
    
    // Available returns how many bytes are unused in the buffer.
    func (b *Writer) Available() int { return len(b.buf) - b.n }
    
    // AvailableBuffer returns an empty buffer with b.Available() capacity.
    // This buffer is intended to be appended to and
    // passed to an immediately succeeding [Writer.Write] call.
    // The buffer is only valid until the next write operation on b.
    func (b *Writer) AvailableBuffer() []byte {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 22K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top