Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 204 for plen (0.02 sec)

  1. src/archive/tar/writer.go

    	length := len(name)
    	if length <= nameSize || !isASCII(name) {
    		return "", "", false
    	} else if length > prefixSize+1 {
    		length = prefixSize + 1
    	} else if name[length-1] == '/' {
    		length--
    	}
    
    	i := strings.LastIndex(name[:length], "/")
    	nlen := len(name) - i - 1 // nlen is length of suffix
    	plen := i                 // plen is length of prefix
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 14:22:59 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  2. docs/fr/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial002.py hl[13,15,22,25] *}
    
    Dans cet exemple, les messages seront écrits dans le fichier `log.txt` après que la réponse soit envoyée.
    
    S'il y avait une `query` (paramètre nommé `q`) dans la requête, alors elle sera écrite dans `log.txt` via une tâche d'arrière-plan.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:29:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    	bytes := buf.Bytes()
    	str := buf.String()
    	if buf.Len() != len(bytes) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.Bytes()) == %d", testname, buf.Len(), len(bytes))
    	}
    
    	if buf.Len() != len(str) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.String()) == %d", testname, buf.Len(), len(str))
    	}
    
    	if buf.Len() != len(s) {
    		t.Errorf("%s: buf.Len() == %d, len(s) == %d", testname, buf.Len(), len(s))
    	}
    
    	if string(bytes) != s {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

            }
            if (elements.length > 0) {
              multiset1.add(elements[0]);
            }
            if (elements.length > 1) {
              /*
               * When a test requests a multiset with duplicates, our plan of
               * "add an extra item 0 to A and an extra item 1 to B" really means
               * "add an extra item 0 to A and B," which isn't what we want.
               */
              if (!Objects.equal(elements[0], elements[1])) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/input.go

    func (in *Input) else_() {
    	in.expectNewline("#else")
    	if len(in.ifdefStack) == 0 {
    		in.Error("unmatched #else")
    	}
    	if len(in.ifdefStack) == 1 || in.ifdefStack[len(in.ifdefStack)-2] {
    		in.ifdefStack[len(in.ifdefStack)-1] = !in.ifdefStack[len(in.ifdefStack)-1]
    	}
    }
    
    // #endif processing.
    func (in *Input) endif() {
    	in.expectNewline("#endif")
    	if len(in.ifdefStack) == 0 {
    		in.Error("unmatched #endif")
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    func Join(s [][]byte, sep []byte) []byte {
    	if len(s) == 0 {
    		return []byte{}
    	}
    	if len(s) == 1 {
    		// Just return a copy.
    		return append([]byte(nil), s[0]...)
    	}
    
    	var n int
    	if len(sep) > 0 {
    		if len(sep) >= maxInt/(len(s)-1) {
    			panic("bytes: Join output length overflow")
    		}
    		n += len(sep) * (len(s) - 1)
    	}
    	for _, v := range s {
    		if len(v) > maxInt-n {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  7. docs/debugging/xl-meta/main.go

    		}
    		set[idx] = b
    		m.parityData[m.data] = set
    
    		// Combine
    		start := len(b) * idx
    		if start >= len(m.mapped) {
    			continue
    		}
    		fmt.Println("Block data size:", m.size, "Shard size", ssz, "Got Shard:", len(b), "Bitrot ok", "Start", start, "End", start+len(b))
    		copy(m.mapped[start:], b)
    		for j := range b {
    			if j+start >= len(m.filled) {
    				break
    			}
    			m.filled[j+start] = 1
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K 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. 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)
  10. istioctl/pkg/writer/table/writer.go

    	return Cell{value, attrs}
    }
    
    func (cell Cell) String() string {
    	if len(cell.Attributes) == 0 {
    		return cell.Value
    	}
    	s := color.New(cell.Attributes...)
    	s.EnableColor()
    	return s.Sprintf("%s", cell.Value)
    }
    
    func (c *ColoredTableWriter) getTableOutput(allRows []Row) [][]Cell {
    	output := [][]Cell{}
    	if len(c.header.Cells) != 0 {
    		output = append(output, c.header.Cells)
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 06 09:43:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top