Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 81 for intSize (0.16 sec)

  1. src/encoding/base64/base64_test.go

    		{StdEncoding, 0, 0},
    		{StdEncoding, 1, 4},
    		{StdEncoding, 2, 4},
    		{StdEncoding, 3, 4},
    		{StdEncoding, 4, 8},
    		{StdEncoding, 7, 12},
    	}
    	// check overflow
    	switch strconv.IntSize {
    	case 32:
    		tests = append(tests, test{RawStdEncoding, (math.MaxInt-5)/8 + 1, 357913942})
    		tests = append(tests, test{RawStdEncoding, math.MaxInt/4*3 + 2, math.MaxInt})
    	case 64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  2. cmd/metacache-walk_gen.go

    	return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7K bytes
    - Viewed (0)
  3. cmd/storage-rest-common_gen.go

    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *nsScannerOptions) Msgsize() (s int) {
    	s = 1 + 3 + msgp.StringPrefixSize + len(z.DiskID) + 2 + msgp.IntSize + 2
    	if z.Cache == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Cache.Msgsize()
    	}
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. src/internal/fuzz/encoding_test.go

    int32(55296)
    rune('\U0010ffff')
    int32(1114112)`,
    		},
    		{
    			desc: "int overflow",
    			in: `go test fuzz v1
    int(0x7fffffffffffffff)
    uint(0xffffffffffffffff)`,
    			want: func() string {
    				switch strconv.IntSize {
    				case 32:
    					return `go test fuzz v1
    int(-1)
    uint(4294967295)`
    				case 64:
    					return `go test fuzz v1
    int(9223372036854775807)
    uint(18446744073709551615)`
    				default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/iimport.go

    		im := r.mpfloat(b)
    		val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im))
    
    	default:
    		errorf("unexpected type %v", typ) // panics
    		panic("unreachable")
    	}
    
    	return
    }
    
    func intSize(b *types.Basic) (signed bool, maxBytes uint) {
    	if (b.Info() & types.IsUntyped) != 0 {
    		return true, 64
    	}
    
    	switch b.Kind() {
    	case types.Float32, types.Complex64:
    		return true, 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. cmd/batch-expire_gen.go

    	for za0002 := range z.Metadata {
    		s += z.Metadata[za0002].Msgsize()
    	}
    	s += 5 + z.Size.Msgsize() + 5 + msgp.StringPrefixSize + len(z.Type) + 5 + msgp.StringPrefixSize + len(z.Name) + 6 + 1 + 15 + msgp.IntSize
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *BatchJobExpirePurge) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 19.8K bytes
    - Viewed (0)
  7. internal/dsync/lock-args_gen.go

    	for za0001 := range z.Resources {
    		s += msgp.StringPrefixSize + len(z.Resources[za0001])
    	}
    	s += 7 + msgp.StringPrefixSize + len(z.Source) + 6 + msgp.StringPrefixSize + len(z.Owner) + 7 + msgp.IntSize
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *LockResp) DecodeMsg(dc *msgp.Reader) (err error) {
    	var field []byte
    	_ = field
    	var zb0001 uint32
    	zb0001, err = dc.ReadMapHeader()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. cmd/batch-job-common-types_gen.go

    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z BatchJobRetry) Msgsize() (s int) {
    	s = 1 + 9 + msgp.IntSize + 6 + msgp.DurationSize
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *BatchJobSize) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 int64
    		zb0001, err = dc.ReadInt64()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_gen.go

    	for za0005 := range z.PartETags {
    		s += msgp.StringPrefixSize + len(z.PartETags[za0005])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    // The same dwarf.StructType pointer will always get the same tag.
    var anonymousStructTag = make(map[*dwarf.StructType]string)
    
    func (c *typeConv) Init(ptrSize, intSize int64) {
    	c.ptrSize = ptrSize
    	c.intSize = intSize
    	c.m = make(map[string]*Type)
    	c.ptrs = make(map[string][]*Type)
    	c.getTypeIDs = make(map[string]bool)
    	c.incompleteStructs = make(map[string]bool)
    	c.bool = c.Ident("bool")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top