Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for Ftruncate (0.13 sec)

  1. cmd/object-api-datatypes.go

    type ListObjectVersionsInfo struct {
    	// Indicates whether the returned list objects response is truncated. A
    	// value of true indicates that the list was truncated. The list can be truncated
    	// if the number of objects exceeds the limit allowed or specified
    	// by max keys.
    	IsTruncated bool
    
    	// When response is truncated (the IsTruncated element value in the response is true),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/HMACT64Test.java

            MessageDigest md5 = MessageDigest.getInstance("MD5");
            byte[] ipad = new byte[64];
            byte[] opad = new byte[64];
    
            // HMACT64 specific: truncate key to 64 bytes if needed
            int keyLen = Math.min(key.length, 64);
            for (int i = 0; i < keyLen; i++) {
                ipad[i] = (byte) (key[i] ^ 0x36);
                opad[i] = (byte) (key[i] ^ 0x5c);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/HMACT64Test.java

            // Calculate expected HMACT64 result manually
            MessageDigest md5 = MessageDigest.getInstance("MD5");
            byte[] ipad = new byte[64];
            byte[] opad = new byte[64];
    
            // HMACT64 specific: truncate key to 64 bytes if needed
            int keyLen = Math.min(key.length, 64);
            for (int i = 0; i < keyLen; i++) {
                ipad[i] = (byte) (key[i] ^ 0x36);
                opad[i] = (byte) (key[i] ^ 0x5c);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComOpenAndX.java

            if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) {
                // truncate the file
                if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
                    // create it if necessary
                    openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
                } else {
                    openFunction = OPEN_FN_TRUNC;
                }
            } else // don't truncate the file
            if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComNTCreateAndX.java

            if ((flags & SmbFile.O_TRUNC) == SmbFile.O_TRUNC) {
                // truncate the file
                if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
                    // create it if necessary
                    createDisposition = FILE_OVERWRITE_IF;
                } else {
                    createDisposition = FILE_OVERWRITE;
                }
            } else // don't truncate the file
            if ((flags & SmbFile.O_CREAT) == SmbFile.O_CREAT) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComOpenAndX.java

                // truncate the file
                if ((flags & SmbConstants.O_CREAT) == SmbConstants.O_CREAT) {
                    // create it if necessary
                    this.openFunction = OPEN_FN_TRUNC | OPEN_FN_CREATE;
                } else {
                    this.openFunction = OPEN_FN_TRUNC;
                }
            } else // don't truncate the file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            // Verify customData part (should be truncated)
            byte[] expectedCustomData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
            byte[] actualCustomData = new byte[8];
            System.arraycopy(value, 8, actualCustomData, 0, 8);
            assertArrayEquals(expectedCustomData, actualCustomData);
    
            // Verify machineId part (should be truncated)
            byte[] expectedMachineId = new byte[32];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    						t.Errorf("Test %d: %s: Expected NextMarker to contain a string since listing is truncated, but instead found it to be empty", i+1, instanceType)
    					}
    
    					if !testCase.resultL.IsTruncated && resultL.NextMarker != "" {
    						if !resultL.IsTruncated || len(resultL.Objects) == 0 {
    							t.Errorf("Test %d: %s: Expected NextMarker to be empty since listing is not truncated, but instead found `%v`", i+1, instanceType, resultL.NextMarker)
    						}
    					}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 76.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbRandomAccess.java

        /**
         * Get the current file length
         *
         * @return file length
         * @throws SmbException if an I/O error occurs
         */
        long length() throws SmbException;
    
        /**
         * Expand/truncate file length
         *
         * @param newLength
         *            new file length
         * @throws SmbException if an I/O error occurs
         */
        void setLength(long newLength) throws SmbException;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java

                // truncate the file
                if ((flags & SmbConstants.O_CREAT) == SmbConstants.O_CREAT) {
                    // create it if necessary
                    this.createDisposition = FILE_OVERWRITE_IF;
                } else {
                    this.createDisposition = FILE_OVERWRITE;
                }
            } else // don't truncate the file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top