Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 147 for Slice3 (0.13 sec)

  1. src/encoding/binary/binary.go

    // For compound structures, it sums the sizes of the elements. Thus, for instance, for a slice
    // it returns the length of the slice times the element size and does not count the memory
    // occupied by the header. If the type of v is not acceptable, dataSize returns -1.
    func dataSize(v reflect.Value) int {
    	switch v.Kind() {
    	case reflect.Slice, reflect.Array:
    		t := v.Type().Elem()
    		if size, ok := structSize.Load(t); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/waypoints.go

    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/kube/krt"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/workloadapi"
    )
    
    type InboundBinding struct {
    	Port     uint32
    	Protocol workloadapi.ApplicationTunnel_Protocol
    }
    
    type Waypoint struct {
    	krt.Named
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 18:02:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/trace/pprof.go

    // license that can be found in the LICENSE file.
    
    // Serving of pprof-like profiles.
    
    package main
    
    import (
    	"cmp"
    	"fmt"
    	"internal/trace"
    	"internal/trace/traceviewer"
    	"net/http"
    	"slices"
    	"strings"
    	"time"
    )
    
    func pprofByGoroutine(compute computePprofFunc, t *parsedTrace) traceviewer.ProfileFunc {
    	return func(r *http.Request) ([]traceviewer.ProfileRecord, error) {
    		name := r.FormValue("name")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  4. src/go/doc/reader.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package doc
    
    import (
    	"cmp"
    	"fmt"
    	"go/ast"
    	"go/token"
    	"internal/lazyregexp"
    	"path"
    	"slices"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // ----------------------------------------------------------------------------
    // function/method sets
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. cmd/metrics-v3.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"slices"
    	"strings"
    
    	"github.com/prometheus/client_golang/prometheus"
    	"github.com/prometheus/client_golang/prometheus/collectors"
    )
    
    // Collector paths.
    //
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 09:36:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. pkg/kube/krt/collection.go

    	o.mu.Lock()
    	defer o.mu.Unlock()
    	o.init = true
    	return slices.Clone(o.h)
    }
    
    func (o *handlers[O]) Insert(f func(o []Event[O], initialSync bool)) bool {
    	o.mu.Lock()
    	defer o.mu.Unlock()
    	o.h = append(o.h, f)
    	return !o.init
    }
    
    func (o *handlers[O]) Get() []func(o []Event[O], initialSync bool) {
    	o.mu.RLock()
    	defer o.mu.RUnlock()
    	return slices.Clone(o.h)
    }
    
    // multiIndex stores input and output objects.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. src/encoding/json/encode.go

    			continue
    		}
    		dominant, ok := dominantField(fields[i : i+advance])
    		if ok {
    			out = append(out, dominant)
    		}
    	}
    
    	fields = out
    	slices.SortFunc(fields, func(i, j field) int {
    		return slices.Compare(i.index, j.index)
    	})
    
    	for i := range fields {
    		f := &fields[i]
    		f.encoder = typeEncoder(typeByIndex(t, f.index))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. src/database/sql/fakedb_test.go

    	driver.Driver
    }
    
    func TestDrivers(t *testing.T) {
    	unregisterAllDrivers()
    	Register("test", fdriver)
    	Register("invalid", Dummy{})
    	all := Drivers()
    	if len(all) < 2 || !slices.IsSorted(all) || !slices.Contains(all, "test") || !slices.Contains(all, "invalid") {
    		t.Fatalf("Drivers = %v, want sorted list with at least [invalid, test]", all)
    	}
    }
    
    // hook to simulate connection failures
    var hookOpenErr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/walk.go

    		default:
    			base.FatalfAt(n.Pos(), "mayCall %+v", n)
    
    		case ir.OCALLFUNC, ir.OCALLINTER,
    			ir.OUNSAFEADD, ir.OUNSAFESLICE:
    			return true
    
    		case ir.OINDEX, ir.OSLICE, ir.OSLICEARR, ir.OSLICE3, ir.OSLICE3ARR, ir.OSLICESTR,
    			ir.ODEREF, ir.ODOTPTR, ir.ODOTTYPE, ir.ODYNAMICDOTTYPE, ir.ODIV, ir.OMOD,
    			ir.OSLICE2ARR, ir.OSLICE2ARRPTR:
    			// These ops might panic, make sure they are done
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. pilot/pkg/model/service.go

    		return false
    	}
    
    	if !slices.Equal(s.Aliases, other.Aliases) {
    		return false
    	}
    
    	if s.ClusterExternalAddresses.Len() != other.ClusterExternalAddresses.Len() {
    		return false
    	}
    
    	for k, v1 := range s.ClusterExternalAddresses.GetAddresses() {
    		if v2, ok := other.ClusterExternalAddresses.Addresses[k]; !ok || !slices.Equal(v1, v2) {
    			return false
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top