Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 205 for cmap (0.12 sec)

  1. src/cmd/compile/internal/types2/map.go

    package types2
    
    // A Map represents a map type.
    type Map struct {
    	key, elem Type
    }
    
    // NewMap returns a new map for the given key and element types.
    func NewMap(key, elem Type) *Map {
    	return &Map{key: key, elem: elem}
    }
    
    // Key returns the key type of map m.
    func (m *Map) Key() Type { return m.key }
    
    // Elem returns the element type of map m.
    func (m *Map) Elem() Type { return m.elem }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 659 bytes
    - Viewed (0)
  2. src/runtime/cgo/mmap.go

    import _ "unsafe"
    
    // When using cgo, call the C library for mmap, so that we call into
    // any sanitizer interceptors. This supports using the memory
    // sanitizer with Go programs. The memory sanitizer only applies to
    // C/C++ code; this permits that code to see the Go code as normal
    // program addresses that have been initialized.
    
    // To support interceptors that look for both mmap and munmap,
    // also call the C library for munmap.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/cases/map.go

    // Annex #29, "Unicode Text Segmentation." For each word boundary, find the
    // first cased character F following the word boundary. If F exists, map F to
    // Titlecase_Mapping(F); then map all characters C between F and the following
    // word boundary to Lowercase_Mapping(C).
    func (t *titleCaser) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. test/fixedbugs/issue52279.dir/lib.go

    package lib
    
    type FMap[K comparable, V comparable] map[K]V
    
    //go:noinline
    func (m FMap[K, V]) Flip() FMap[V, K] {
    	out := make(FMap[V, K])
    	return out
    }
    
    type MyType uint8
    
    const (
    	FIRST MyType = 0
    )
    
    var typeStrs = FMap[MyType, string]{
    	FIRST: "FIRST",
    }
    
    func (self MyType) String() string {
    	return typeStrs[self]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:15:31 UTC 2022
    - 321 bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap.go

    // license that can be found in the LICENSE file.
    
    // This package is a lightly modified version of the mmap code
    // in github.com/google/codesearch/index.
    
    // The mmap package provides an abstraction for memory mapping files
    // on different platforms.
    package mmap
    
    import (
    	"os"
    )
    
    // The backing file is never closed, so Data
    // remains valid for the lifetime of the process.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 30 21:40:49 UTC 2024
    - 1002 bytes
    - Viewed (0)
  6. src/runtime/map_fast64.go

    )
    
    func mapaccess1_fast64(t *maptype, h *hmap, key uint64) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		racereadpc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapaccess1_fast64))
    	}
    	if h == nil || h.count == 0 {
    		return unsafe.Pointer(&zeroVal[0])
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map read and map write")
    	}
    	var b *bmap
    	if h.B == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/outbuf_windows.go

    		Exitf("resize output file failed: %v", err)
    	}
    
    	low, high := uint32(filesize), uint32(filesize>>32)
    	fmap, err := syscall.CreateFileMapping(syscall.Handle(out.f.Fd()), nil, syscall.PAGE_READWRITE, high, low, nil)
    	if err != nil {
    		return err
    	}
    	defer syscall.CloseHandle(fmap)
    
    	ptr, err := syscall.MapViewOfFile(fmap, syscall.FILE_MAP_READ|syscall.FILE_MAP_WRITE, 0, 0, uintptr(filesize))
    	if err != nil {
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 01:59:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. pkg/kube/krt/informer_test.go

    		},
    	}
    	cmt.Create(cmA)
    	tt.WaitOrdered("add/ns/a")
    	assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA})
    
    	cmt.Update(cmA2)
    	tt.WaitOrdered("update/ns/a")
    	assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA2})
    
    	cmt.Create(cmB)
    	tt.WaitOrdered("add/ns/b")
    	assert.Equal(t, slices.SortBy(ConfigMaps.List(), func(a *corev1.ConfigMap) string { return a.Name }), []*corev1.ConfigMap{cmA2, cmB})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/runtime/map_faststr.go

    	"unsafe"
    )
    
    func mapaccess1_faststr(t *maptype, h *hmap, ky string) unsafe.Pointer {
    	if raceenabled && h != nil {
    		callerpc := getcallerpc()
    		racereadpc(unsafe.Pointer(h), callerpc, abi.FuncPCABIInternal(mapaccess1_faststr))
    	}
    	if h == nil || h.count == 0 {
    		return unsafe.Pointer(&zeroVal[0])
    	}
    	if h.flags&hashWriting != 0 {
    		fatal("concurrent map read and map write")
    	}
    	key := stringStructOf(&ky)
    	if h.B == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    // == cannot be used to check for equivalence, and thus we cannot
    // simply use a Go map.
    //
    // Just as with map[K]V, a nil *Map is a valid empty map.
    //
    // Not thread-safe.
    type Map struct {
    	hasher Hasher             // shared by many Maps
    	table  map[uint32][]entry // maps hash to bucket; entry.key==nil means unused
    	length int                // number of map entries
    }
    
    // entry is an entry (key/value association) in a hash bucket.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top