Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,431 for byteEq (0.13 sec)

  1. guava/src/com/google/common/hash/MessageDigestHashFunction.java

      }
    
      MessageDigestHashFunction(String algorithmName, int bytes, String toString) {
        this.toString = checkNotNull(toString);
        this.prototype = getMessageDigest(algorithmName);
        int maxLength = prototype.getDigestLength();
        checkArgument(
            bytes >= 4 && bytes <= maxLength, "bytes (%s) must be >= 4 and < %s", bytes, maxLength);
        this.bytes = bytes;
        this.supportsClone = supportsClone(prototype);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 25 20:32:46 UTC 2022
    - 5K bytes
    - Viewed (0)
  2. cmd/bitrot.go

    		}
    		var (
    			hash = algorithm.New()
    			msg  = make([]byte, 0, hash.Size()*hash.BlockSize())
    			sum  = make([]byte, 0, hash.Size())
    		)
    		for i := 0; i < hash.Size()*hash.BlockSize(); i += hash.Size() {
    			hash.Write(msg)
    			sum = hash.Sum(sum[:0])
    			msg = append(msg, sum...)
    			hash.Reset()
    		}
    		if !bytes.Equal(sum, checksum) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Chars.java

       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static char fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1]);
      }
    
      /**
       * Returns the {@code char} value whose byte representation is the given 2 bytes, in big-endian
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Shorts.java

       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static short fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1]);
      }
    
      /**
       * Returns the {@code short} value whose byte representation is the given 2 bytes, in big-endian
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Shorts.java

       * @throws IllegalArgumentException if {@code bytes} has fewer than 2 elements
       */
      @GwtIncompatible // doesn't work
      public static short fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(bytes[0], bytes[1]);
      }
    
      /**
       * Returns the {@code short} value whose byte representation is the given 2 bytes, in big-endian
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
        assertThrows(EOFException.class, () -> in.readUnsignedByte());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type2Message.java

        private byte[] challenge;
        private String target;
        private byte[] context;
        private byte[] targetInformation;
    
        private static final Map<String, byte[]> TARGET_INFO_CACHE = new HashMap<>();
    
    
        private static byte[] getDefaultTargetInfo ( CIFSContext tc ) {
            String domain = tc.getConfig().getDefaultDomain();
            byte[] ti = TARGET_INFO_CACHE.get(domain);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.4K bytes
    - Viewed (0)
  9. cmd/httprange.go

    )
    
    const (
    	byteRangePrefix = "bytes="
    )
    
    // HTTPRangeSpec represents a range specification as supported by S3 GET
    // object request.
    //
    // Case 1: Not present -> represented by a nil RangeSpec
    // Case 2: bytes=1-10 (absolute start and end offsets) -> RangeSpec{false, 1, 10}
    // Case 3: bytes=10- (absolute start offset with end offset unspecified) -> RangeSpec{false, 10, -1}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. internal/http/response-recorder.go

    	LogAllBody bool
    
    	ttfbHeader time.Duration
    	ttfbBody   time.Duration
    
    	StartTime time.Time
    	// number of bytes written
    	bytesWritten int
    	// number of bytes of response headers written
    	headerBytesWritten int
    	// Internal recording buffer
    	headers bytes.Buffer
    	body    bytes.Buffer
    	// Indicate if headers are written in the log
    	headersLogged bool
    }
    
    // Hijack - hijacks the underlying connection
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 17:13:00 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top