Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 249 for Ftruncate (0.06 sec)

  1. android/guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      }
    
      private int nextRandomKey() {
        int a = random.nextInt(max);
    
        /*
         * For example, if concentration=2.0, the following takes the square root of
         * the uniformly-distributed random integer, then truncates any fractional
         * part, so higher integers would appear (in this case linearly) more often
         * than lower ones.
         */
        return (int) Math.pow(a, 1.0 / concentration);
      }
    
      @AfterExperiment
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

      }
    
      private int nextRandomKey() {
        int a = random.nextInt(max);
    
        /*
         * For example, if concentration=2.0, the following takes the square root of
         * the uniformly-distributed random integer, then truncates any fractional
         * part, so higher integers would appear (in this case linearly) more often
         * than lower ones.
         */
        return (int) Math.pow(a, 1.0 / concentration);
      }
    
      @AfterExperiment
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.4K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    			t.Errorf("Write: got (%d, %v), want (%d, %v)", n, err, want, nil)
    		}
    		check(t, "TestBasicOperations (6)", &buf, testString[0:26])
    
    		buf.Truncate(26)
    		check(t, "TestBasicOperations (7)", &buf, testString[0:26])
    
    		buf.Truncate(20)
    		check(t, "TestBasicOperations (8)", &buf, testString[0:20])
    
    		empty(t, "TestBasicOperations (9)", &buf, testString[0:20], make([]byte, 5))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. src/main/webapp/WEB-INF/orig/view/index.jsp

    									autocomplete="off" />
    							</div>
    						</div>
    						<c:if test="${!empty popularWords}">
    							<div class="clearfix">
    								<p class="text-truncate">
    									<la:message key="labels.search_popular_word_word" />
    									<c:forEach var="item" varStatus="s" items="${popularWords}">
    										<c:if test="${s.index < 3}">
    											<la:link
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:07:52 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbResource.java

    
        /**
         * Opens an output stream writing to the file (write only, exclusive write access)
         * 
         * @param append
         *            whether to append to or truncate the input
         * @param openFlags
         *            flags for open operation
         * @param access
         *            desired file access flags
         * @param sharing
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  6. internal/s3select/select.go

    		}
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    		buf.WriteString(s3Select.Output.CSVArgs.RecordDelimiter)
    
    		return nil
    	case jsonFormat:
    		err := record.WriteJSON(buf)
    		if err != nil {
    			return err
    		}
    		// Trim trailing newline from non-simd output
    		if buf.Bytes()[buf.Len()-1] == '\n' {
    			buf.Truncate(buf.Len() - 1)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/UnsignedInteger.java

       * bits, returns the low 32 bits of the result.
       *
       * @since 14.0
       */
      @J2ktIncompatible
      @GwtIncompatible // Does not truncate correctly
      public UnsignedInteger times(UnsignedInteger val) {
        // TODO(lowasser): make this GWT-compatible
        return fromIntBits(value * checkNotNull(val).value);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/UnsignedInteger.java

       * bits, returns the low 32 bits of the result.
       *
       * @since 14.0
       */
      @J2ktIncompatible
      @GwtIncompatible // Does not truncate correctly
      public UnsignedInteger times(UnsignedInteger val) {
        // TODO(lowasser): make this GWT-compatible
        return fromIntBits(value * checkNotNull(val).value);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. internal/kms/kes.go

    	list := make([]madmin.KMSAPI, 0, len(APIs))
    	for _, api := range APIs {
    		list = append(list, madmin.KMSAPI{
    			Method:  api.Method,
    			Path:    api.Path,
    			MaxBody: api.MaxBody,
    			Timeout: int64(api.Timeout.Truncate(time.Second).Seconds()),
    		})
    	}
    	return list, nil
    }
    
    // Stat returns the current KES status containing a
    // list of KES endpoints and the default key ID.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/archive/tar/common.go

    			whyNoUSTAR = fmt.Sprintf("USTAR cannot encode %s=%v", name, ts)
    			format.mustNotBe(FormatUSTAR)
    		}
    		needsNano := ts.Nanosecond() != 0
    		if !isMtime || !fitsOctal || needsNano {
    			preferPAX = true // USTAR may truncate sub-second measurements
    			if paxKey == paxNone {
    				whyNoPAX = fmt.Sprintf("PAX cannot encode %s=%v", name, ts)
    				format.mustNotBe(FormatPAX)
    			} else {
    				paxHdrs[paxKey] = formatPAXTime(ts)
    			}
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 13 21:03:27 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top