Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Chunk (0.08 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                int length = 0x12345678;
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
                byte[] buffer = new byte[EXPECTED_SIZE];
    
                // When
                int bytesWritten = chunk.encode(buffer, 0);
    
                // Then
                assertEquals(EXPECTED_SIZE, bytesWritten);
                assertEquals(chunk.size(), bytesWritten);
    
                // Verify complete structure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. cmd/streaming-signature-v4_test.go

    		},
    		// Test - 2 no chunk extension, return same buffer.
    		{
    			[]byte("10000;"),
    			[]byte("10000;"),
    			nil,
    		},
    		// Test - 3 no chunk size, return error.
    		{
    			[]byte(";chunk-signature="),
    			nil,
    			nil,
    		},
    		// Test - 4 removes trailing slash.
    		{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

            }
    
            @Test
            @DisplayName("Should return correct size with single chunk")
            void testSizeWithSingleChunk() {
                // Given
                byte[] sourceKey = new byte[SOURCE_KEY_SIZE];
                SrvCopychunk chunk = new SrvCopychunk(0, 0, 0);
                SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunk);
    
                // When
                int size = copy.size();
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          if (closed) return
          closed = true
          detachTimeout(timeout)
          state = STATE_READ_RESPONSE_HEADERS
        }
      }
    
      /**
       * An HTTP body with alternating chunk sizes and chunk bodies. It is the caller's responsibility
       * to buffer chunks; typically by using a buffered sink with this sink.
       */
      private inner class ChunkedSink : Sink {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopy.java

     * copy operations with multiple chunk specifications.
     *
     * @author mbechler
     *
     */
    public class SrvCopychunkCopy implements Encodable {
    
        private final byte[] sourceKey;
        private final SrvCopychunk[] chunks;
    
        /**
         * Constructs a server copy chunk operation request
         * @param sourceKey the resume key identifying the source file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

            }
    
            @Test
            @DisplayName("Should handle mismatched chunk and total bytes")
            void testMismatchedValues() throws SMBProtocolDecodingException {
                // This could happen if the last chunk is smaller
                byte[] buffer = createValidCopyChunkResponse(10, // 10 chunks
                        65536, // Last chunk size (not average)
                        589824 // Total less than 10 * 65536
                );
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunk.java

    /**
     * SMB2 SRV_COPYCHUNK data structure. This structure represents a single chunk specification
     * for server-side copy operations.
     *
     * @author mbechler
     *
     */
    public class SrvCopychunk implements Encodable {
    
        private final long sourceOffset;
        private final long targetOffset;
        private final int length;
    
        /**
         * Constructs a server copy chunk descriptor
         * @param soff the source file offset
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponse.java

        public SrvCopyChunkCopyResponse() {
        }
    
        private int chunksWritten;
        private int chunkBytesWritten;
        private int totalBytesWritten;
    
        /**
         * Gets the number of bytes written in the last chunk
         * @return the chunkBytesWritten
         */
        public int getChunkBytesWritten() {
            return this.chunkBytesWritten;
        }
    
        /**
         * Gets the number of chunks successfully written
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java

        /**
         * Function code to transceive data on a named pipe
         */
        public static final int FSCTL_PIPE_TRANSCEIVE = 0x0011C017;
        /**
         * Function code for server-side copy chunk operation
         */
        public static final int FSCTL_SRV_COPYCHUNK = 0x001440F2;
        /**
         * Function code to enumerate volume shadow copy snapshots
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. tests/generics_test.go

    	}
    
    	total := 0
    	err := gorm.G[User](DB).Where("name like ?", "GenericsFindBatch%").FindInBatches(ctx, 2, func(chunk []User, batch int) error {
    		if len(chunk) > 2 {
    			t.Errorf("batch size exceed 2: got %d", len(chunk))
    		}
    
    		total += len(chunk)
    		return nil
    	})
    	if err != nil {
    		t.Fatalf("FindInBatches failed: %v", err)
    	}
    
    	if total != len(users) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
Back to top