Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Balint (0.23 sec)

  1. src/bytes/bytes.go

    		// Just return a copy.
    		return append([]byte(nil), s[0]...)
    	}
    
    	var n int
    	if len(sep) > 0 {
    		if len(sep) >= maxInt/(len(s)-1) {
    			panic("bytes: Join output length overflow")
    		}
    		n += len(sep) * (len(s) - 1)
    	}
    	for _, v := range s {
    		if len(v) > maxInt-n {
    			panic("bytes: Join output length overflow")
    		}
    		n += len(v)
    	}
    
    	b := bytealg.MakeNoZero(n)[:n:n]
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  2. api/go1.17.txt

    pkg math (darwin-arm64), const MaxInt = 9223372036854775807
    pkg math (darwin-arm64), const MaxUint = 18446744073709551615
    pkg math (darwin-arm64), const MinInt = -9223372036854775808
    pkg math (darwin-arm64-cgo), const MaxInt = 9223372036854775807
    pkg math (darwin-arm64-cgo), const MaxUint = 18446744073709551615
    pkg math (darwin-arm64-cgo), const MinInt = -9223372036854775808
    pkg math (freebsd-386), const MaxInt = 2147483647
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 18K bytes
    - Viewed (0)
  3. api/go1.2.txt

    pkg syscall (linux-arm-cgo), type Timeval struct, Sec int32
    pkg syscall (linux-arm-cgo), type Timeval struct, Usec int32
    pkg syscall (linux-arm-cgo), type Timex struct
    pkg syscall (linux-arm-cgo), type Timex struct, Calcnt int32
    pkg syscall (linux-arm-cgo), type Timex struct, Constant int32
    pkg syscall (linux-arm-cgo), type Timex struct, Errcnt int32
    pkg syscall (linux-arm-cgo), type Timex struct, Esterror int32
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  4. src/bufio/scan.go

    			s.end -= s.start
    			s.start = 0
    		}
    		// Is the buffer full? If so, resize.
    		if s.end == len(s.buf) {
    			// Guarantee no overflow in the multiplication below.
    			const maxInt = int(^uint(0) >> 1)
    			if len(s.buf) >= s.maxTokenSize || len(s.buf) > maxInt/2 {
    				s.setErr(ErrTooLong)
    				return false
    			}
    			newSize := len(s.buf) * 2
    			if newSize == 0 {
    				newSize = startBufSize
    			}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    	{"1 2 3 4", " ", 3, []string{"1", "2", "3 4"}},
    	{"1 2", " ", 3, []string{"1", "2"}},
    	{"123", "", 2, []string{"1", "23"}},
    	{"123", "", 17, []string{"1", "2", "3"}},
    	{"bT", "T", math.MaxInt / 4, []string{"b", ""}},
    	{"\xff-\xff", "", -1, []string{"\xff", "-", "\xff"}},
    	{"\xff-\xff", "-", -1, []string{"\xff", "\xff"}},
    }
    
    func TestSplit(t *testing.T) {
    	for _, tt := range splittests {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. api/go1.20.txt

    pkg log/syslog (freebsd-riscv64-cgo), type Writer struct #53466
    pkg math (freebsd-riscv64), const MaxInt = 9223372036854775807 #53466
    pkg math (freebsd-riscv64), const MaxUint = 18446744073709551615 #53466
    pkg math (freebsd-riscv64), const MinInt = -9223372036854775808 #53466
    pkg math (freebsd-riscv64-cgo), const MaxInt = 9223372036854775807 #53466
    pkg math (freebsd-riscv64-cgo), const MaxUint = 18446744073709551615 #53466
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  7. src/bytes/buffer_test.go

    		if err := recover(); err != ErrTooLarge {
    			t.Errorf("after too-large Grow, recover() = %v; want %v", err, ErrTooLarge)
    		}
    	}()
    
    	buf := NewBuffer(make([]byte, 1))
    	const maxInt = int(^uint(0) >> 1)
    	buf.Grow(maxInt)
    }
    
    // Was a bug: used to give EOF reading empty slice at EOF.
    func TestReadEmptyAtEOF(t *testing.T) {
    	b := new(Buffer)
    	slice := make([]byte, 0)
    	n, err := b.Read(slice)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  8. src/bytes/buffer.go

    var ErrTooLarge = errors.New("bytes.Buffer: too large")
    var errNegativeRead = errors.New("bytes.Buffer: reader returned negative count from Read")
    
    const maxInt = int(^uint(0) >> 1)
    
    // Bytes returns a slice of length b.Len() holding the unread portion of the buffer.
    // The slice is valid for use only until the next buffer modification (that is,
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  9. api/go1.18.txt

    pkg reflect, func PointerTo(Type) Type
    pkg reflect, method (*MapIter) Reset(Value)
    pkg reflect, method (Value) CanComplex() bool
    pkg reflect, method (Value) CanFloat() bool
    pkg reflect, method (Value) CanInt() bool
    pkg reflect, method (Value) CanUint() bool
    pkg reflect, method (Value) FieldByIndexErr([]int) (Value, error)
    pkg reflect, method (Value) SetIterKey(*MapIter)
    pkg reflect, method (Value) SetIterValue(*MapIter)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    								if sdat, err := sect.Data(); err == nil {
    									data := sdat[s.Value-sect.Addr:]
    									strlen := bo.Uint64(data[:8])
    									if strlen > (1<<(uint(p.IntSize*8)-1) - 1) { // greater than MaxInt?
    										fatalf("string literal too big")
    									}
    									strlens[n] = int(strlen)
    								}
    							}
    						}
    						break
    					}
    				}
    			}
    
    			buildStrings()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top