Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,376 for sizeof (0.03 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                // Test various data lengths to ensure 8-byte alignment
                for (int i = 0; i < 16; i++) {
                    request.setData(new byte[i], 0, i);
                    int size = request.size();
                    assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

                assertEquals(0, response.getCommand());
            }
    
            @Test
            @DisplayName("Should work with different buffer sizes")
            void testDifferentBufferSizes() throws SMBProtocolDecodingException {
                // Minimum size buffer
                byte[] minBuffer = new byte[20];
                SMBUtil.writeInt2(17, minBuffer, 0);
                SMBUtil.writeInt2(0, minBuffer, 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  3. cmd/object-api-datatypes.go

    	// Name of the bucket.
    	Bucket string
    
    	// Name of the object.
    	Name string
    
    	// Date and time when the object was last modified.
    	ModTime time.Time
    
    	// Total object size.
    	Size int64
    
    	// Actual size is the real size of the object uploaded by client.
    	ActualSize *int64
    
    	// IsDir indicates if the object is prefix.
    	IsDir bool
    
    	// Hex encoded unique entity tag of the object.
    	ETag string
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

        @DisplayName("Should handle edge case structure sizes")
        void testEdgeCaseStructureSizes() {
            // Test minimum invalid size (0)
            byte[] buffer = new byte[256];
            SMBUtil.writeInt2(0, buffer, 0);
    
            SMBProtocolDecodingException ex1 = assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0));
            assertEquals("Structure size != 4", ex1.getMessage());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                assertEquals(expectedSize, req.size());
            }
    
            @Test
            @DisplayName("Should align size to 8-byte boundary")
            void testSizeAlignment() {
                int size = request.size();
                assertEquals(0, size % 8, "Size should be aligned to 8-byte boundary");
            }
    
            @ParameterizedTest
            @DisplayName("Should calculate size for various lock counts")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

            @ValueSource(ints = { 8, 16, 32, 64, 128, 256 })
            @DisplayName("Should handle various sizes")
            void testVariousSizes(int size) {
                MockCreateContextRequest mock = new MockCreateContextRequest("TEST", size);
                assertEquals(size, mock.size());
                assertEquals(size, mock.encode(new byte[size * 2], 0));
            }
        }
    
        @Nested
        @DisplayName("Edge Case Tests")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

        // When called at high frequency, boxing size generates too much garbage,
        // so avoid doing that if we can.
        if (size < 0) {
          throw new IllegalArgumentException(String.format("Invalid size: %s", size));
        }
        return newDataOutput(new ByteArrayOutputStream(size));
      }
    
      /**
       * Returns a new {@link ByteArrayDataOutput} instance which writes to the given {@code
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental.h

    // enabled through MarkForCompilationPassFlags.
    TF_CAPI_EXPORT unsigned char TF_GetXlaAutoJitEnabled();
    
    // Sets XLA's minimum cluster size. This has global effect.
    TF_CAPI_EXPORT void TF_SetXlaMinClusterSize(int size);
    
    // Gets/Sets TF/XLA flag for whether(true) or not(false) to disable constant
    // folding. This is for testing to ensure that XLA is being tested rather than
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
        public int size() {
            int size = Smb2Constants.SMB2_HEADER_LENGTH + 24;
            for (final Smb2Lock l : this.locks) {
                size += l.size();
            }
            return size8(size);
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java

        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
        public int size() {
            int size = Smb2Constants.SMB2_HEADER_LENGTH + 40;
            if (this.inputBuffer != null) {
                size += this.inputBuffer.size();
            }
            return size8(size);
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top