Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 128 for cap (0.13 sec)

  1. internal/grid/connection.go

    					}
    					continue
    				}
    				if int64(cap(dst)) < hdr.Length+1 {
    					dst = make([]byte, 0, hdr.Length+hdr.Length>>3)
    				}
    				return readAllInto(dst[:0], &wsReader)
    			}
    		}
    
    		// Keep reusing the same buffer.
    		var msg []byte
    		for {
    			if atomic.LoadUint32((*uint32)(&c.state)) != StateConnected {
    				cancel(ErrDisconnected)
    				return
    			}
    			if cap(msg) > readBufferSize*4 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  2. cmd/local-locker_gen.go

    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		var zb0005 uint32
    		zb0005, err = dc.ReadArrayHeader()
    		if err != nil {
    			err = msgp.WrapError(err, zb0001)
    			return
    		}
    		if cap(zb0002) >= int(zb0005) {
    			zb0002 = (zb0002)[:zb0005]
    		} else {
    			zb0002 = make([]lockRequesterInfo, zb0005)
    		}
    		for zb0003 := range zb0002 {
    			err = zb0002[zb0003].DecodeMsg(dc)
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  3. internal/logger/target/http/http.go

    		// from this main worker routine will exit
    		// once the channel drops below half capacity
    		// and when it's been at least 30 seconds since
    		// we launched a new worker.
    		if mainWorker && len(h.logCh) > cap(h.logCh)/2 {
    			nWorkers := atomic.LoadInt64(&h.workers)
    			if nWorkers < h.maxWorkers {
    				if time.Since(h.lastStarted).Milliseconds() > 10 {
    					h.lastStarted = time.Now()
    					go h.startQueueProcessor(ctx, false)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. association.go

    			var fieldValue reflect.Value
    			if clear {
    				fieldValue = reflect.MakeSlice(oldFieldValue.Type(), 0, oldFieldValue.Cap())
    			} else {
    				fieldValue = reflect.MakeSlice(oldFieldValue.Type(), oldFieldValue.Len(), oldFieldValue.Cap())
    				reflect.Copy(fieldValue, oldFieldValue)
    			}
    
    			appendToFieldValues := func(ev reflect.Value) {
    				if ev.Type().AssignableTo(elemType) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

            }
    
            try ( SmbTreeHandleImpl th = ensureTreeConnected() ) {
                if ( !th.isSMB2() && !th.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                    throw new SmbUnsupportedOperationException("Not supported without CAP_NT_SMBS");
                }
                return new SmbWatchHandleImpl(openUnshared(O_RDONLY, READ_CONTROL | GENERIC_READ, DEFAULT_SHARING, 0, 1), filter, recursive);
            }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  6. cmd/handler-api.go

    			apiRequestsMaxPerNode /= n
    		}
    	}
    
    	if globalIsDistErasure {
    		logger.Info("Configured max API requests per node based on available memory: %d", apiRequestsMaxPerNode)
    	}
    
    	if cap(t.requestsPool) != apiRequestsMaxPerNode {
    		// Only replace if needed.
    		// Existing requests will use the previous limit,
    		// but new requests will use the new limit.
    		// There will be a short overlap window,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                    if ( a.isAnonymous() ) {
                        this.lmHash = new byte[0];
                        this.ntHash = new byte[0];
                        this.capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                        if ( a.isGuest() ) {
                            this.accountName = a.getUsername();
                            if ( this.isUseUnicode() )
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 17 10:20:23 GMT 2019
    - 8.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

                        req.setFileInformation(new FileBasicInfo(ctime, atime, mtime, 0L, attrs));
                        dh.send(req);
                    }
                    else if ( dh.hasCapability(SmbConstants.CAP_NT_SMBS) ) {
                        // use the open file descriptor
                        dh.send(
                            new Trans2SetFileInformation(dh.getConfig(), dfd.getFid(), attrs, ctime, mtime, atime),
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:52:42 GMT 2020
    - 17.1K bytes
    - Viewed (0)
  9. internal/dsync/lock-args_gen.go

    				return
    			}
    		case "Resources":
    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Resources")
    				return
    			}
    			if cap(z.Resources) >= int(zb0002) {
    				z.Resources = (z.Resources)[:zb0002]
    			} else {
    				z.Resources = make([]string, zb0002)
    			}
    			for za0001 := range z.Resources {
    				z.Resources[za0001], err = dc.ReadString()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  10. internal/s3select/simdj/record.go

    	if dst == nil {
    		dst = &json.Record{SelectFormat: sql.SelectFmtJSON}
    	}
    	dst.Reset()
    	elems, err := r.object.Parse(nil)
    	if err != nil {
    		return nil, err
    	}
    	if cap(dst.KVS) < len(elems.Elements) {
    		dst.KVS = make(jstream.KVS, 0, len(elems.Elements))
    	}
    	for _, elem := range elems.Elements {
    		v, err := sql.IterToValue(elem.Iter)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 5.4K bytes
    - Viewed (0)
Back to top