Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,431 for byteEq (0.12 sec)

  1. docs/debugging/inspect/export.go

    func checkXL2V1(buf []byte) (payload []byte, major, minor uint16, e error) {
    	if len(buf) <= 8 {
    		return payload, 0, 0, fmt.Errorf("xlMeta: no data")
    	}
    
    	if !bytes.Equal(buf[:4], xlHeader[:]) {
    		return payload, 0, 0, fmt.Errorf("xlMeta: unknown XLv2 header, expected %v, got %v", xlHeader[:4], buf[:4])
    	}
    
    	if bytes.Equal(buf[4:8], []byte("1   ")) {
    		// Set as 1,0.
    		major, minor = 1, 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 08 15:58:02 UTC 2022
    - 9.1K bytes
    - Viewed (0)
  2. 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)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 29 18:27:23 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        Random r = new Random(1234567);
        for (int length = 0; length < 1000; length++) {
          byte[] bytes = new byte[length];
          r.nextBytes(bytes);
          assertCrc(referenceCrc(bytes), bytes);
        }
      }
    
      private static int referenceCrc(byte[] bytes) {
        int crc = ~0;
        for (byte b : bytes) {
          crc = (crc >>> 8) ^ Crc32cHashFunction.Crc32cHasher.BYTE_TABLE[(crc ^ b) & 0xFF];
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      }
    
      /** Convenience method to compute a fingerprint on a full bytes array. */
      private static long fingerprint(byte[] bytes) {
        return fingerprint(bytes, bytes.length);
      }
    
      /** Convenience method to compute a fingerprint on a subset of a byte array. */
      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/ByteEncodable.java

    /**
     * @author mbechler
     *
     */
    public class ByteEncodable implements Encodable {
    
        private byte[] bytes;
        private int off;
        private int len;
    
    
        /**
         * @param b
         * @param off
         * @param len
         */
        public ByteEncodable ( byte[] b, int off, int len ) {
            this.bytes = b;
            this.off = off;
            this.len = len;
        }
    
    
        /**
         * {@inheritDoc}
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

          return false;
        }
    
        byte[] bytes = ip.getAddress();
    
        if ((bytes[8] | (byte) 0x03) != (byte) 0x03) {
    
          // Verify that high byte of the 64 bit identifier is zero, modulo
          // the U/L and G bits, with which we are not concerned.
          return false;
        }
    
        return (bytes[9] == (byte) 0x00) && (bytes[10] == (byte) 0x5e) && (bytes[11] == (byte) 0xfe);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  7. internal/kms/secret-key.go

    		CHACHA20POLY1305 = "ChaCha20Poly1305"
    	)
    
    	type JSON struct {
    		Algorithm string `json:"aead"`
    		ID        string `json:"id"`
    		IV        []byte `json:"iv"`
    		Nonce     []byte `json:"nonce"`
    		Bytes     []byte `json:"bytes"`
    	}
    	var value JSON
    	if err := json.Unmarshal(text, &value); err != nil {
    		return ErrDecrypt
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteSource.java

          ByteSource
      {
    
        final byte[] bytes;
        final int offset;
        final int length;
    
        ByteArrayByteSource(byte[] bytes) {
          this(bytes, 0, bytes.length);
        }
    
        // NOTE: Preconditions are enforced by slice, the only non-trivial caller.
        ByteArrayByteSource(byte[] bytes, int offset, int length) {
          this.bytes = bytes;
          this.offset = offset;
          this.length = length;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/BaseEncoding.java

        }
      }
    
      /** Encodes the specified byte array, and returns the encoded {@code String}. */
      public String encode(byte[] bytes) {
        return encode(bytes, 0, bytes.length);
      }
    
      /**
       * Encodes the specified range of the specified byte array, and returns the encoded {@code
       * String}.
       */
      public final String encode(byte[] bytes, int off, int len) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

                andxCommand = (byte)0xFF;
                andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte)0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
    //            dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
                dst[start + ANDX_OFFSET_OFFSET] = (byte)0xde;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 11.3K bytes
    - Viewed (0)
Back to top