Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 354 for index (0.12 sec)

  1. src/image/jpeg/huffman.go

    				x++
    			}
    		}
    
    		// Derive minCodes, maxCodes, and valsIndices.
    		var c, index int32
    		for i, n := range nCodes {
    			if n == 0 {
    				h.minCodes[i] = -1
    				h.maxCodes[i] = -1
    				h.valsIndices[i] = -1
    			} else {
    				h.minCodes[i] = c
    				h.maxCodes[i] = c + n - 1
    				h.valsIndices[i] = index
    				c += n
    				index += n
    			}
    			c <<= 1
    		}
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/compress/bzip2/huffman.go

    // A huffmanTree is a binary tree which is navigated, bit-by-bit to reach a
    // symbol.
    type huffmanTree struct {
    	// nodes contains all the non-leaf nodes in the tree. nodes[0] is the
    	// root of the tree and nextNode contains the index of the next element
    	// of nodes to use when the tree is being constructed.
    	nodes    []huffmanNode
    	nextNode int
    }
    
    // A huffmanNode is a node in the tree. left and right contain indexes into the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/godebug.go

    		b.WriteString("=")
    		b.WriteString(m[k])
    	}
    	return b.String()
    }
    
    func godebugForGoVersion(v string) map[string]string {
    	if strings.Count(v, ".") >= 2 {
    		i := strings.Index(v, ".")
    		j := i + 1 + strings.Index(v[i+1:], ".")
    		v = v[:j]
    	}
    
    	if !strings.HasPrefix(v, "1.") {
    		return nil
    	}
    	n, err := strconv.Atoi(v[len("1."):])
    	if err != nil {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. src/runtime/netpoll_wasip1.go

    //   instead are appended to a separate events buffer. poll_oneoff writes zero
    //   or more events to the buffer (at most one per input subscription) and
    //   returns the number of events written. Although the index of the
    //   subscriptions might not match the index of the associated event in the
    //   events buffer, both the subscription and event structs contain a userdata
    //   field and when a subscription yields an event the userdata fields will
    //   match.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. cmd/batchjobmetric_string.go

    // Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[batchJobMetricReplication-0]
    	_ = x[batchJobMetricKeyRotation-1]
    	_ = x[batchJobMetricExpire-2]
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 797 bytes
    - Viewed (0)
  6. src/internal/syscall/windows/reparse_windows.go

    	// The integer that contains the offset, in bytes,
    	// of the substitute name string in the PathBuffer array,
    	// computed as an offset from byte 0 of PathBuffer. Note that
    	// this offset must be divided by 2 to get the array index.
    	SubstituteNameOffset uint16
    	// The integer that contains the length, in bytes, of the
    	// substitute name string. If this string is null-terminated,
    	// SubstituteNameLength does not include the Unicode null character.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 12 07:15:06 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/issues_test.go

    		"package p; var _ = T{@f(1, 2, 3): 0}",
    		"package p; var _ = T{@a + f(b) + <-ch: 0}",
    	}
    
    	for _, src := range tests {
    		// identify column position of @ and remove it from src
    		i := strings.Index(src, "@")
    		if i < 0 {
    			t.Errorf("%s: invalid test case (missing @)", src)
    			continue
    		}
    		src = src[:i] + src[i+1:]
    		want := colbase + uint(i)
    
    		f, err := Parse(nil, strings.NewReader(src), nil, nil, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/internal/reflectlite/export_test.go

    func Field(v Value, i int) Value {
    	if v.kind() != Struct {
    		panic(&ValueError{"reflect.Value.Field", v.kind()})
    	}
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	if uint(i) >= uint(len(tt.Fields)) {
    		panic("reflect: Field index out of range")
    	}
    	field := &tt.Fields[i]
    	typ := field.Typ
    
    	// Inherit permission bits from v, but clear flagEmbedRO.
    	fl := v.flag&(flagStickyRO|flagIndir|flagAddr) | flag(typ.Kind())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/dwtest/dwtest.go

    		fmt.Printf("  ")
    	}
    }
    
    // For debugging new tests
    func (ex *Examiner) DumpEntry(idx int, dumpKids bool, ilevel int) {
    	if idx >= len(ex.dies) {
    		fmt.Fprintf(os.Stderr, "DumpEntry: bad DIE %d: index out of range\n", idx)
    		return
    	}
    	entry := ex.dies[idx]
    	indent(ilevel)
    	fmt.Printf("0x%x: %v\n", idx, entry.Tag)
    	for _, f := range entry.Field {
    		indent(ilevel)
    		fmt.Printf("at=%v val=%v\n", f.Attr, f.Val)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 15:22:18 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/cmd/go/internal/base/goflags.go

    			if hideErrors {
    				continue
    			}
    			Fatalf("go: parsing $GOFLAGS: non-flag %q", f)
    		}
    
    		name := f[1:]
    		if name[0] == '-' {
    			name = name[1:]
    		}
    		if i := strings.Index(name, "="); i >= 0 {
    			name = name[:i]
    		}
    		if !hasFlag(Go, name) {
    			if hideErrors {
    				continue
    			}
    			Fatalf("go: parsing $GOFLAGS: unknown flag -%s", name)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top