Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,126 for len (0.13 sec)

  1. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            }
            return len;
        }
        int readStringLength( byte[] src, int srcIndex, int max ) {
            int len = 0;
            while( src[srcIndex + len] != (byte)0x00 ) {
                if( len++ > max ) {
                    throw new RuntimeException( "zero termination not found: " + this );
                }
            }
            return len;
        }
        int encode( byte[] dst, int dstIndex ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 21K bytes
    - Viewed (0)
  2. cmd/bootstrap-peer-server.go

    		}
    	}
    	msg := "Expected same MINIO_ environment variables and values across all servers: "
    	if len(missing) > 0 {
    		msg += fmt.Sprintf(`Missing environment values: %v. `, missing)
    	}
    	if len(mismatching) > 0 {
    		msg += fmt.Sprintf(`Mismatching environment values: %v. `, mismatching)
    	}
    	if len(extra) > 0 {
    		msg += fmt.Sprintf(`Extra environment values: %v. `, extra)
    	}
    
    	return errors.New(strings.TrimSpace(msg))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  3. scan.go

    		if field == nil {
    			continue
    		}
    
    		if len(joinFields) == 0 || len(joinFields[idx]) == 0 {
    			db.AddError(field.Set(db.Statement.Context, reflectValue, values[idx]))
    		} else { // joinFields count is larger than 2 when using join
    			var isNilPtrValue bool
    			var relValue reflect.Value
    			// does not contain raw dbname
    			nestedJoinSchemas := joinFields[idx][:len(joinFields[idx])-1]
    			// current reflect value
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool.go

    	serverPools := make(serverPoolsAvailableSpace, len(z.serverPools))
    
    	storageInfos := make([][]*DiskInfo, len(z.serverPools))
    	nSets := make([]int, len(z.serverPools))
    	g := errgroup.WithNErrs(len(z.serverPools))
    	for index := range z.serverPools {
    		index := index
    		// Skip suspended pools or pools participating in rebalance for any new
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    			return err
    		}
    		if len(formats) != len(formatErasure.Erasure.Sets)*len(formatErasure.Erasure.Sets[0]) {
    			return fmt.Errorf("%s drive is already being used in another erasure deployment. (Number of drives specified: %d but the number of drives found in the %s drive's format.json: %d)",
    				disks[i], len(formats), humanize.Ordinal(i+1), len(formatErasure.Erasure.Sets)*len(formatErasure.Erasure.Sets[0]))
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/lifecycle/providers/packaging/AbstractLifecycleMappingProvider.java

            requireNonNull(pluginBindings);
            final int len = pluginBindings.length;
            if (len < 2 || len % 2 != 0) {
                throw new IllegalArgumentException("Plugin bindings must have more than 0, even count of elements");
            }
    
            HashMap<String, LifecyclePhase> lifecyclePhaseBindings = new HashMap<>(len / 2);
            for (int i = 0; i < len; i = i + 2) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 15:34:45 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/TestCharSink.java

            flush();
          }
    
          @Override
          public void write(char[] cbuf, int off, int len) throws IOException {
            super.write(cbuf, off, len);
            flush();
          }
    
          @Override
          public void write(String str, int off, int len) throws IOException {
            super.write(str, off, len);
            flush();
          }
        };
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Nov 09 21:39:24 GMT 2012
    - 2K bytes
    - Viewed (0)
  8. cmd/batch-job-common-types_gen_test.go

    		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)
    	}
    
    	left, err = msgp.Skip(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
    	}
    }
    
    func BenchmarkMarshalMsgBatchJobKV(b *testing.B) {
    	v := BatchJobKV{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 02 10:51:33 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        public void write ( byte b[], int off, int len ) throws SmbException {
            if ( len <= 0 ) {
                return;
            }
    
            // ensure file is open
            try ( SmbFileHandleImpl fh = ensureOpen();
                  SmbTreeHandleImpl th = fh.getTree() ) {
                int w;
                do {
                    w = len > this.writeSize ? this.writeSize : len;
                    long cnt;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  10. helm/minio/templates/_helper_policy.tpl

    {{- $statements_length := len .statements -}} {{- $statements_length := sub $statements_length 1 -}} { "Version": "2012-10-17", "Statement": [ {{- range $i, $statement := .statements }} { "Effect": "{{ $statement.effect | default "Allow" }}", "Action": [ "{{ $statement.actions | join "\",\n\"" }}" ]{{ if $statement.resources }}, "Resource": [ "{{ $statement.resources | join "\",\n\"" }}" ]{{ end }} {{- if $statement.conditions }} {{- $condition_len := len $statement.conditions }} {{- $condition_len...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Aug 19 14:39:11 GMT 2023
    - 872 bytes
    - Viewed (0)
Back to top