Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 849 for IBytes (0.13 sec)

  1. android/guava/src/com/google/common/hash/HashCode.java

          return bytes.clone();
        }
    
        @Override
        public int asInt() {
          checkState(
              bytes.length >= 4,
              "HashCode#asInt() requires >= 4 bytes (it only has %s bytes).",
              bytes.length);
          return (bytes[0] & 0xFF)
              | ((bytes[1] & 0xFF) << 8)
              | ((bytes[2] & 0xFF) << 16)
              | ((bytes[3] & 0xFF) << 24);
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. cmd/copy-part-range_test.go

    		}
    	}
    
    	// Test invalid range strings.
    	invalidRangeStrings := []string{
    		"bytes=8",
    		"bytes=5-2",
    		"bytes=+2-5",
    		"bytes=2-+5",
    		"bytes=2--5",
    		"bytes=-",
    		"2-5",
    		"bytes = 2-5",
    		"bytes=2 - 5",
    		"bytes=0-0,-1",
    		"bytes=2-5 ",
    		"bytes=-1",
    		"bytes=1-",
    	}
    	for _, rangeString := range invalidRangeStrings {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  3. cmd/data-usage-cache_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalallTierStats(t *testing.T) {
    	v := allTierStats{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:51:08 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        int totalBytes = hashCode.bits() / 8;
    
        for (int bytes = 0; bytes < totalBytes; bytes++) {
          byte[] bb = new byte[bytes];
          hashCode.writeBytesTo(bb, 0, bb.length);
    
          assertTrue(Arrays.equals(Arrays.copyOf(hashBytes, bytes), bb));
        }
      }
    
      private static class ExpectedHashCode {
        final byte[] bytes;
        final int asInt;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Utf8.java

       * well-formed.
       *
       * <p>This method returns {@code true} if and only if {@code Arrays.equals(bytes, new
       * String(bytes, UTF_8).getBytes(UTF_8))} does, but is more efficient in both time and space.
       */
      public static boolean isWellFormed(byte[] bytes) {
        return isWellFormed(bytes, 0, bytes.length);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. cmd/batch-replicate_gen_test.go

    	v := BatchJobReplicateCredentials{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	b.SetBytes(int64(buf.Len()))
    	en := msgp.NewWriter(msgp.Nowhere)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.EncodeMsg(en)
    	}
    	en.Flush()
    }
    
    func BenchmarkDecodeBatchJobReplicateCredentials(b *testing.B) {
    	v := BatchJobReplicateCredentials{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 29 18:27:23 GMT 2023
    - 14.2K bytes
    - Viewed (1)
  7. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        byte[] bytes = newPreFilledByteArray(100);
        skipHelper(0, 0, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new ByteArrayInputStream(bytes));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 1));
        skipHelper(50, 50, new SlowSkipper(new ByteArrayInputStream(bytes), 0));
        skipHelper(100, -1, new ByteArrayInputStream(bytes));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

       *
       *  * 16 bytes: either `OkHttp cache v1\n` if the persisted file is complete. This is another
       *    sequence of bytes if the file is incomplete and should not be used.
       *  * 8 bytes: *n*: upstream data size
       *  * 8 bytes: *m*: metadata size
       *  * *n* bytes: upstream data
       *  * *m* bytes: metadata
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. cmd/batch-expire_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalBatchJobExpire(t *testing.T) {
    	v := BatchJobExpire{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 6.9K bytes
    - Viewed (0)
  10. cmd/last-minute_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalAccElem(t *testing.T) {
    	v := AccElem{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jul 05 21:45:49 GMT 2022
    - 6.8K bytes
    - Viewed (0)
Back to top