Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for 1024 (0.15 sec)

  1. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            if (value < 1024) {
                format = "0";
            } else if (value < 1024L * 1024L) {
                target /= 1024;
                unit = "K";
            } else if (value < 1024L * 1024L * 1024L) {
                target /= 1024;
                target /= 1024;
                unit = "M";
            } else if (value < 1024L * 1024L * 1024L * 1024L) {
                target /= 1024;
                target /= 1024;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        assertThrows(FileNotFoundException.class, () -> Files.map(file));
      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileInputStream.java

                        if ( type == SmbConstants.TYPE_NAMED_PIPE ) {
                            request.setMinCount(1024);
                            request.setMaxCount(1024);
                            request.setRemaining(1024);
                        }
                        else if ( this.largeReadX ) {
                            request.setMaxCount(r & 0xFFFF);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      private Comparator<byte[]> javaImpl;
      private Comparator<byte[]> unsafeImpl;
    
      // 4, 8, 64, 1K, 1M, 1M (unaligned), 64M, 64M (unaligned)
      // @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"})
      @Param({"4", "8", "64", "1024"})
      private int length;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/BigIntegerMathRoundingBenchmark.java

      RoundingMode mode;
    
      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(1024);
          nonzero1[i] = randomNonZeroBigInteger(1024);
          nonzero2[i] = randomNonZeroBigInteger(1024);
        }
      }
    
      @Benchmark
      int log2(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jun 30 13:06:20 GMT 2020
    - 2.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ReadWriteTest.java

                try ( SmbPipeHandle p = f.openPipe() ) {
                    try ( OutputStream os = p.getOutput() ) {
                        writeRandom(1024, 1024, os);
                        try ( InputStream is = p.getInput() ) {
                            verifyRandom(1024, 1024, is);
                        }
                    }
                }
                catch ( SmbException e ) {
                    if ( e.getNtStatus() == 0xC00000BB ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 13.2K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/CacheResponse.java

    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class CacheResponse {
      private final OkHttpClient client;
    
      public CacheResponse(File cacheDirectory) throws Exception {
        int cacheSize = 10 * 1024 * 1024; // 10 MiB
        Cache cache = new Cache(cacheDirectory, cacheSize);
    
        client = new OkHttpClient.Builder()
            .cache(cache)
            .build();
      }
    
      public void run() throws Exception {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 2.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/escape/Platform.java

      private Platform() {}
    
      /** Returns a thread-local 1024-char array. */
      static char[] charBufferFromThreadLocal() {
        // requireNonNull accommodates Android's @RecentlyNullable annotation on ThreadLocal.get
        return requireNonNull(DEST_TL.get());
      }
    
      /**
       * A thread-local destination buffer to keep us from creating new buffers. The starting size is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      private Comparator<byte[]> javaImpl;
      private Comparator<byte[]> unsafeImpl;
    
      // 4, 8, 64, 1K, 1M, 1M (unaligned), 64M, 64M (unaligned)
      // @Param({"4", "8", "64", "1024", "1048576", "1048577", "6710884", "6710883"})
      @Param({"4", "8", "64", "1024"})
      private int length;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.8K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java

                mojoExecutionListener.afterExecutionFailure(
                        new MojoExecutionEvent(session, project, mojoExecution, mojo, e));
                ByteArrayOutputStream os = new ByteArrayOutputStream(1024);
                PrintStream ps = new PrintStream(os);
                ps.println(
                        "A required class was missing while executing " + mojoDescriptor.getId() + ": " + e.getMessage());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 10.9K bytes
    - Viewed (0)
Back to top