Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,107 for Len (0.01 sec)

  1. src/main/java/jcifs/smb1/dcerpc/UnicodeString.java

        }
    
        public UnicodeString(String str, boolean zterm) {
            this.zterm = zterm;
    
            int len = str.length();
            int zt = zterm ? 1 : 0;
    
            length = maximum_length = (short)((len + zt) * 2);
            buffer = new short[len + zt];
    
            int i;
            for (i = 0; i < len; i++) {
                buffer[i] = (short)str.charAt(i);
            }
            if (zterm) {
                buffer[i] = (short)0;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java

            if( len > i ) {
                System.arraycopy( b, off, pipe_buf, nxt_idx, i );
                off += i;
                System.arraycopy( b, off, pipe_buf, 0, len - i ); 
            } else {
                System.arraycopy( b, off, pipe_buf, nxt_idx, len );
            }
            nxt_idx = ( nxt_idx + len ) % pipe_buf.length;
            used += len;
            return len;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.6K bytes
    - Viewed (0)
  3. internal/ringbuffer/ring_buffer.go

    			}
    			return nil
    		}
    		return r.err
    	}
    	return nil
    }
    
    // Read reads up to len(p) bytes into p. It returns the number of bytes read (0 <= n <= len(p)) and any error encountered.
    // Even if Read returns n < len(p), it may use all of p as scratch space during the call.
    // If some data is available but not len(p) bytes, Read conventionally returns what is available instead of waiting for more.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. cmd/tier-last-day-stats_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 BenchmarkMarshalMsgDailyAllTierStats(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/monitor_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 BenchmarkMarshalMsgBucketBandwidthReport(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. callbacks/helper.go

    	columns := make([]string, 0, len(mapValues))
    
    	// when the length of mapValues is zero,return directly here
    	// no need to call stmt.SelectAndOmitColumns method
    	if len(mapValues) == 0 {
    		stmt.AddError(gorm.ErrEmptySlice)
    		return
    	}
    
    	var (
    		result                    = make(map[string][]interface{}, len(mapValues))
    		selectColumns, restricted = stmt.SelectAndOmitColumns(true, false)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 14 12:32:57 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common.go

    	availableDisks = make([]StorageAPI, len(onlineDisks))
    
    	dataErrsByDisk = make(map[int][]int, len(onlineDisks))
    	for i := range onlineDisks {
    		dataErrsByDisk[i] = make([]int, len(latestMeta.Parts))
    	}
    
    	dataErrsByPart = make(map[int][]int, len(latestMeta.Parts))
    	for i := range latestMeta.Parts {
    		dataErrsByPart[i] = make([]int, len(onlineDisks))
    	}
    
    	inconsistent := 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    	partInfosInQuorum := make([]ObjectPartInfo, len(partMetaPaths))
    	for pidx := range partMetaPaths {
    		// partMetaQuorumMap uses
    		//  - path/to/part.N as key to collate errors from failed drives.
    		//  - part ETag to collate part metadata
    		partMetaQuorumMap := make(map[string]int, len(partNumbers))
    		var pinfos []*ObjectPartInfo
    		for idx := range disks {
    			if len(objectPartInfos[idx]) != len(partMetaPaths) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
  9. src/archive/tar/strconv.go

    func (f *formatter) formatString(b []byte, s string) {
    	if len(s) > len(b) {
    		f.err = ErrFieldTooLong
    	}
    	copy(b, s)
    	if len(s) < len(b) {
    		b[len(s)] = 0
    	}
    
    	// Some buggy readers treat regular files with a trailing slash
    	// in the V7 path field as a directory even though the full path
    	// recorded elsewhere (e.g., via PAX record) contains no trailing slash.
    	if len(s) > len(b) && b[len(b)-1] == '/' {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  10. cmd/erasure-healing.go

    		Bucket:       bucket,
    		Object:       object,
    		DiskCount:    len(storageDisks),
    		ParityBlocks: er.defaultParityCount,
    		DataBlocks:   len(storageDisks) - er.defaultParityCount,
    		ObjectSize:   0,
    	}
    
    	hr.Before.Drives = make([]madmin.HealDriveInfo, len(storageDisks))
    	hr.After.Drives = make([]madmin.HealDriveInfo, len(storageDisks))
    
    	errs := statAllDirs(ctx, storageDisks, bucket, object)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 02 17:50:41 UTC 2024
    - 34.4K bytes
    - Viewed (0)
Back to top