Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cap (0.14 sec)

  1. src/bufio/scan.go

    	}
    }
    
    // Buffer sets the initial buffer to use when scanning
    // and the maximum size of buffer that may be allocated during scanning.
    // The maximum token size must be less than the larger of max and cap(buf).
    // If max <= cap(buf), [Scanner.Scan] will use this buffer only and do no allocation.
    //
    // By default, [Scanner.Scan] uses an internal buffer and sets the
    // maximum token size to [MaxScanTokenSize].
    //
    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)
  2. scan.go

    				update = false
    				if isArrayKind {
    					db.Statement.ReflectValue.Set(reflect.Zero(reflectValue.Type()))
    				} else {
    					// if the slice cap is externally initialized, the externally initialized slice is directly used here
    					if reflectValue.Cap() == 0 {
    						db.Statement.ReflectValue.Set(reflect.MakeSlice(reflectValue.Type(), 0, 20))
    					} else {
    						reflectValue.SetLen(0)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 26 09:53:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top