Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 198 for iota (0.05 sec)

  1. src/go/types/expr.go

    				// init expression/func declaration which contains
    				// them: use existing package-level declaration info.
    				decl := check.decl // capture for use in closure below
    				iota := check.iota // capture for use in closure below (go.dev/issue/22345)
    				// Don't type-check right away because the function may
    				// be part of a type definition to which the function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/runtime/mfinal.go

    	fin     [(_FinBlockSize - 2*goarch.PtrSize - 2*4) / unsafe.Sizeof(finalizer{})]finalizer
    }
    
    var fingStatus atomic.Uint32
    
    // finalizer goroutine status.
    const (
    	fingUninitialized uint32 = iota
    	fingCreated       uint32 = 1 << (iota - 1)
    	fingRunningFinalizer
    	fingWait
    	fingWake
    )
    
    var finlock mutex  // protects the following variables
    var fing *g        // goroutine that runs finalizers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. src/go/types/errsupport.go

    	// inaccessible   x.foo   !=    foo    cannot refer to unexported field foo
    	// missing        x.foo   !=    foO    type X has no field or method foo
    
    	const (
    		ok           = iota
    		missing      // no object found
    		misspelled   // found object with different spelling
    		unexported   // found object with name differing only in first letter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    	b = 1 &lt;&lt; iota  // b == 2  (iota == 1)
    	c = 3          // c == 3  (iota == 2, unused)
    	d = 1 &lt;&lt; iota  // d == 8  (iota == 3)
    )
    
    const (
    	u         = iota * 42  // u == 0     (untyped integer constant)
    	v float64 = iota * 42  // v == 42.0  (float64 constant)
    	w         = iota * 42  // w == 84    (untyped integer constant)
    )
    
    const x = iota  // x == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/runtime/traceallocfree.go

    // Runtime -> tracer API for memory events.
    
    package runtime
    
    import (
    	"internal/abi"
    	"runtime/internal/sys"
    )
    
    // Batch type values for the alloc/free experiment.
    const (
    	traceAllocFreeTypesBatch = iota // Contains types. [{id, address, size, ptrspan, name length, name string} ...]
    	traceAllocFreeInfoBatch         // Contains info for interpreting events. [min heap addr, page size, min heap align, min stack align]
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:32:51 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/runtime/error.go

    	}
    	return "interface conversion: " + cs + " is not " + as +
    		": missing method " + e.missingMethod
    }
    
    // itoa converts val to a decimal representation. The result is
    // written somewhere within buf and the location of the result is returned.
    // buf must be at least 20 bytes.
    //
    //go:nosplit
    func itoa(buf []byte, val uint64) []byte {
    	i := len(buf) - 1
    	for val >= 10 {
    		buf[i] = byte(val%10 + '0')
    		i--
    		val /= 10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/runtime/mgc.go

    // gcBlackenEnabled is 1 if mutator assists and background mark
    // workers are allowed to blacken objects. This must only be set when
    // gcphase == _GCmark.
    var gcBlackenEnabled uint32
    
    const (
    	_GCoff             = iota // GC not running; sweeping in background, write barrier disabled
    	_GCmark                   // GC marking roots and workbufs: allocate black, write barrier ENABLED
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  8. src/net/interface.go

    	HardwareAddr HardwareAddr // IEEE MAC-48, EUI-48 and EUI-64 form
    	Flags        Flags        // e.g., FlagUp, FlagLoopback, FlagMulticast
    }
    
    type Flags uint
    
    const (
    	FlagUp           Flags = 1 << iota // interface is administratively up
    	FlagBroadcast                      // interface supports broadcast access capability
    	FlagLoopback                       // interface is a loopback interface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/go/types/check.go

    	scope         *Scope                 // top-most scope for lookups
    	pos           token.Pos              // if valid, identifiers are looked up as if at position pos (used by Eval)
    	iota          constant.Value         // value of iota in a constant declaration; nil otherwise
    	errpos        positioner             // if set, identifier position of a constant with inherited initializer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/crypto/tls/boring_test.go

    				testClientCert(t, listName+"->"+rootName[1:]+" (fips, client cert)", pool, leaf.key, list, shouldVerifyFIPS)
    				fipstls.Abandon()
    			}
    		}
    	}
    }
    
    const (
    	boringCertCA = iota
    	boringCertLeaf
    	boringCertFIPSOK = 0x80
    )
    
    func boringRSAKey(t *testing.T, size int) *rsa.PrivateKey {
    	k, err := rsa.GenerateKey(rand.Reader, size)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return k
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top