Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 962 for buffers (0.03 sec)

  1. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

            this.leaseState = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            this.leaseFlags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // LeaseDuration (8 bytes) - reserved, skip
            bufferIndex += 8;
    
            byte[] parentKeyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, parentKeyBytes, 0, 16);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/fscc/FileStandardInfo.java

        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.numberOfLinks = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java

        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 9) {
                throw new SMBProtocolDecodingException("Expected structureSize = 9");
            }
    
            final int bufferOffset = SMBUtil.readInt2(buffer, bufferIndex + 2) + getHeaderStart();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java

                assertEquals(0, smbComTreeDisconnect.readBytesWireFormat(buffer, i));
            }
        }
    
        /**
         * Test boundary conditions for buffer indices
         */
        @Test
        @DisplayName("Test boundary conditions for buffer indices")
        public void testBoundaryConditions() {
            // Given
            smbComTreeDisconnect = new SmbComTreeDisconnect(config);
            byte[] buffer = new byte[100];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComCreateDirectoryTest.java

            byte[] buffer = new byte[10];
            int result = smbCom.readParameterWordsWireFormat(buffer, 0);
            assertEquals(0, result);
        }
    
        @Test
        void testReadBytesWireFormat() {
            // This method is empty, so it should return 0
            SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, "testDir");
            byte[] buffer = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. cmd/batch-handlers_gen_test.go

    	v := BatchJobPrefix{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeBatchJobPrefix(b *testing.B) {
    	v := BatchJobPrefix{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. cmd/local-locker_gen_test.go

    	v := localLockMap{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodelocalLockMap(b *testing.B) {
    	v := localLockMap{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        assertThat(stream.readBytes.total).isEqualTo(0L)
        assertThat(stream.takeHeaders()).isEqualTo(headersOf("a", "android"))
        val source = stream.source
        val buffer = Buffer()
        buffer.writeAll(source)
        assertThat(source.read(buffer, 1)).isEqualTo(-1)
        assertThat(buffer.size).isEqualTo(150)
        val synStream = peer.takeFrame()
        assertThat(synStream.type).isEqualTo(Http2.TYPE_HEADERS)
        for (i in 0..2) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            byte[] buffer = new byte[100];
            int offset = 10;
    
            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(4, bytesWritten, "Should write 4 bytes");
            // Check that structure size (4) is written as 2-byte little-endian
            assertEquals(4, buffer[offset] | (buffer[offset + 1] << 8), "Structure size should be 4");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/NtTransQuerySecurityDescResponse.java

        @Override
        int readSetupWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            length = readInt4(buffer, bufferIndex);
            return 4;
        }
    
        @Override
        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top