Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for iota (0.03 sec)

  1. src/crypto/tls/alert.go

    	alertECHRequired:                  "encrypted client hello required",
    }
    
    func (e alert) String() string {
    	s, ok := alertText[e]
    	if ok {
    		return "tls: " + s
    	}
    	return "tls: alert(" + strconv.Itoa(int(e)) + ")"
    }
    
    func (e alert) Error() string {
    	return e.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/strconv/atoi.go

    }
    
    func baseError(fn, str string, base int) *NumError {
    	return &NumError{fn, stringslite.Clone(str), errors.New("invalid base " + Itoa(base))}
    }
    
    func bitSizeError(fn, str string, bitSize int) *NumError {
    	return &NumError{fn, stringslite.Clone(str), errors.New("invalid bit size " + Itoa(bitSize))}
    }
    
    const intSize = 32 << (^uint(0) >> 63)
    
    // IntSize is the size in bits of an int or uint value.
    const IntSize = intSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. src/runtime/trace2map_test.go

    		m.Reset()
    	}
    }
    
    func TestTraceMapConcurrent(t *testing.T) {
    	var m TraceMap
    
    	var wg sync.WaitGroup
    	for i := range 3 {
    		wg.Add(1)
    		go func(i int) {
    			defer wg.Done()
    
    			si := strconv.Itoa(i)
    			var d = [...]string{
    				"a" + si,
    				"b" + si,
    				"aa" + si,
    				"ab" + si,
    				"ba" + si,
    				"bb" + si,
    			}
    			ids := make([]uint64, 0, len(d))
    			for _, s := range d {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 18:52:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/crypto/des/cipher.go

    	"internal/byteorder"
    	"strconv"
    )
    
    // The DES block size in bytes.
    const BlockSize = 8
    
    type KeySizeError int
    
    func (k KeySizeError) Error() string {
    	return "crypto/des: invalid key size " + strconv.Itoa(int(k))
    }
    
    // desCipher is an instance of DES encryption.
    type desCipher struct {
    	subkeys [16]uint64
    }
    
    // NewCipher creates and returns a new [cipher.Block].
    func NewCipher(key []byte) (cipher.Block, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/go/types/context.go

    func (ctxt *Context) instanceHash(orig Type, targs []Type) string {
    	assert(ctxt != nil)
    	assert(orig != nil)
    	var buf bytes.Buffer
    
    	h := newTypeHasher(&buf, ctxt)
    	h.string(strconv.Itoa(ctxt.getID(orig)))
    	// Because we've already written the unique origin ID this call to h.typ is
    	// unnecessary, but we leave it for hash readability. It can be removed later
    	// if performance is an issue.
    	h.typ(orig)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/trace/jsontrace_test.go

    		}
    		if keep {
    			filtered.Events = append(filtered.Events, e)
    		}
    	}
    	return
    }
    
    func stackFrames(data *format.Data, stackID int) (frames []string) {
    	for {
    		frame, ok := data.Frames[strconv.Itoa(stackID)]
    		if !ok {
    			return
    		}
    		frames = append(frames, frame.Name)
    		stackID = frame.Parent
    	}
    }
    
    func checkProcStartStop(t *testing.T, data format.Data) {
    	procStarted := map[uint64]bool{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/internal/concurrent/hashtriemap_test.go

    		gmp := runtime.GOMAXPROCS(-1)
    		var wg sync.WaitGroup
    		for i := range gmp {
    			wg.Add(1)
    			go func(id int) {
    				defer wg.Done()
    
    				makeKey := func(s string) string {
    					return s + "-" + strconv.Itoa(id)
    				}
    				for _, s := range testData {
    					key := makeKey(s)
    					expectMissing(t, key, 0)(m.Load(key))
    					expectStored(t, key, id)(m.LoadOrStore(key, id))
    					expectPresent(t, key, id)(m.Load(key))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. src/os/user/cgo_lookup_unix.go

    	})
    	if err == syscall.ENOENT || (err == nil && !found) {
    		return nil, UnknownGroupIdError(strconv.Itoa(gid))
    	}
    	if err != nil {
    		return nil, fmt.Errorf("user: lookup groupid %d: %v", gid, err)
    	}
    	return buildGroup(&grp), nil
    }
    
    func buildGroup(grp *_C_struct_group) *Group {
    	g := &Group{
    		Gid:  strconv.Itoa(int(_C_gr_gid(grp))),
    		Name: _C_GoString(_C_gr_name(grp)),
    	}
    	return g
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top