Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 1,508 for byteEq (0.05 sec)

  1. internal/bucket/bandwidth/reader.go

    // Read implements a throttled read
    func (r *MonitoredReader) Read(buf []byte) (n int, err error) {
    	if r.throttle == nil {
    		return r.r.Read(buf)
    	}
    	if r.lastErr != nil {
    		err = r.lastErr
    		return
    	}
    	b := r.throttle.Burst()  // maximum available tokens
    	need := len(buf)         // number of bytes requested by caller
    	hdr := r.opts.HeaderSize // remaining header bytes
    	var tokens int           // number of tokens to request
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 14:57:31 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    			}
    
    			_, err = obj.PutObject(ctx, bucket, object,
    				mustGetPutObjReader(t, bytes.NewReader(data), int64(len(data)), "", ""), opts)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			actualH := sha256.New()
    			_, err = io.Copy(actualH, bytes.NewReader(data))
    			if err != nil {
    				return
    			}
    			actualSha256 := actualH.Sum(nil)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  3. internal/config/identity/openid/jwt_test.go

              "alg":"RS256",
              "kid":"2011-04-29"}
           ]
         }`
    
    	pubKeys := publicKeys{
    		RWMutex: &sync.RWMutex{},
    		pkMap:   map[string]interface{}{},
    	}
    	err := pubKeys.parseAndAdd(bytes.NewBuffer([]byte(jsonkey)))
    	if err != nil {
    		t.Fatal("Error loading pubkeys:", err)
    	}
    	if len(pubKeys.pkMap) != 1 {
    		t.Fatalf("Expected 1 keys, got %d", len(pubKeys.pkMap))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/SignedBytes.java

       *     {@link Byte#MAX_VALUE} if it is too large, or {@link Byte#MIN_VALUE} if it is too small
       */
      public static byte saturatedCast(long value) {
        if (value > Byte.MAX_VALUE) {
          return Byte.MAX_VALUE;
        }
        if (value < Byte.MIN_VALUE) {
          return Byte.MIN_VALUE;
        }
        return (byte) value;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/ntlmssp/Type3Message.java

                hmac.update(this.ntResponse, 0, 16); // only first 16 bytes of ntResponse
                byte[] userSessionKey = hmac.digest();
    
                if ( getFlag(NTLMSSP_NEGOTIATE_KEY_EXCH) ) {
                    this.masterKey = new byte[16];
                    tc.getConfig().getRandom().nextBytes(this.masterKey);
    
                    byte[] encryptedKey = new byte[16];
                    Cipher rc4 = Crypto.getArcfour(userSessionKey);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 30.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/PairedStats.java

      }
    
      // Serialization helpers
    
      /** The size of byte array representation in bytes. */
      private static final int BYTES = Stats.BYTES * 2 + Double.SIZE / Byte.SIZE;
    
      /**
       * Gets a byte array representation of this instance.
       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public byte[] toByteArray() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

      /** Number of bytes to be filled before process() invocation(s). */
      private final int bufferSize;
    
      /** Number of bytes processed per process() invocation. */
      private final int chunkSize;
    
      /**
       * Constructor for use by subclasses. This hasher instance will process chunks of the specified
       * size.
       *
       * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmUtil.java

        };
    
    
        /*
         * Accepts key multiple of 7
         * Returns enc multiple of 8
         * Multiple is the same like: 21 byte key gives 24 byte result
         */
        static void E ( byte[] key, byte[] data, byte[] e ) throws ShortBufferException {
            byte[] key7 = new byte[7];
            byte[] e8 = new byte[8];
    
            for ( int i = 0; i < key.length / 7; i++ ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/SocketOutputStream.java

        }
    
        public synchronized void write( byte[] b, int off, int len ) throws IOException {
            if( len > 0xFFFF ) {
                throw new IOException( "write too large: " + len );
            } else if( off < 4 ) {
                throw new IOException( "NetBIOS socket output buffer requires 4 bytes available before off" );
            }
    
            off -= 4;
    
            b[off + 0] = (byte)SessionServicePacket.SESSION_MESSAGE;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  10. cmd/background-newdisks-heal-ops_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalhealingTracker(t *testing.T) {
    	v := healingTracker{}
    	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)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top