Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 174 for 1029 (0.03 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;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. cmd/batch-job-common-types_test.go

    		{
    			// 1Mib < 2Mib < 10MiB -> in range
    			objSize: 2 << 20,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    				LowerBound: 1 << 20,
    			},
    			want: true,
    		},
    		{
    			// 2KiB < 1 MiB -> out of range from left
    			objSize: 2 << 10,
    			sizeFilter: BatchJobSizeFilter{
    				UpperBound: 10 << 20,
    				LowerBound: 1 << 20,
    			},
    			want: false,
    		},
    		{
    			// 11MiB > 10 MiB -> out of range from right
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 08 23:22:28 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. 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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 30 13:06:20 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source = relay.newSource()
        val sourceBuffer = Buffer()
        assertThat(source!!.read(sourceBuffer, 5)).isEqualTo(5)
        assertThat(sourceBuffer.readUtf8()).isEqualTo("abcde")
        assertThat(source.read(sourceBuffer, 1024)).isEqualTo(8)
        assertThat(sourceBuffer.readUtf8()).isEqualTo("fghijklm")
        assertThat(source.read(sourceBuffer, 1024)).isEqualTo(-1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. android/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;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 30 13:06:20 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  7. api/go1.12.txt

    pkg syscall (freebsd-386), type Stat_t struct, Rdev uint64
    pkg syscall (freebsd-386), type Stat_t struct, Spare [10]uint64
    pkg syscall (freebsd-386), type Statfs_t struct, Mntfromname [1024]int8
    pkg syscall (freebsd-386), type Statfs_t struct, Mntonname [1024]int8
    pkg syscall (freebsd-386-cgo), const S_IRWXG = 56
    pkg syscall (freebsd-386-cgo), const S_IRWXG ideal-int
    pkg syscall (freebsd-386-cgo), const S_IRWXO = 7
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
  8. internal/ringbuffer/ring_buffer_benchmark_test.go

    )
    
    func BenchmarkRingBuffer_Sync(b *testing.B) {
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncRead(b *testing.B) {
    	// Pretty useless benchmark, but it's here for completeness.
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/RandomAccessFileTest.java

        }
    
    
        @Test
        public void testReadWrite () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    int bufSize = 4096;
                    long l = 1024;
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
                        writeRandom(bufSize, l, raf);
                        assertEquals(l, raf.getFilePointer());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  10. internal/ringbuffer/README.md

    [![wikipedia](Circular_Buffer_Animation.gif)](https://github.com/smallnest/ringbuffer)
    
    # Usage
    
    ```go
    package main
    
    import (
    	"fmt"
    
    	"github.com/smallnest/ringbuffer"
    )
    
    func main() {
    	rb := ringbuffer.New(1024)
    
    	// write
    	rb.Write([]byte("abcd"))
    	fmt.Println(rb.Length())
    	fmt.Println(rb.Free())
    
    	// read
    	buf := make([]byte, 4)
    	rb.Read(buf)
    	fmt.Println(string(buf))
    }
    ```
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top