Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for less (0.19 sec)

  1. src/arena/arena.go

    of Go values and free that space manually all at once, safely. The purpose
    of this functionality is to improve efficiency: manually freeing memory
    before a garbage collection delays that cycle. Less frequent cycles means
    the CPU cost of the garbage collector is incurred less frequently.
    
    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  2. src/bytes/example_test.go

    	// abc
    	// abc
    	// dbc
    }
    
    func ExampleCompare() {
    	// Interpret Compare's result by comparing it to zero.
    	var a, b []byte
    	if bytes.Compare(a, b) < 0 {
    		// a less b
    	}
    	if bytes.Compare(a, b) <= 0 {
    		// a less or equal b
    	}
    	if bytes.Compare(a, b) > 0 {
    		// a greater b
    	}
    	if bytes.Compare(a, b) >= 0 {
    		// a greater or equal b
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  3. src/cmd/asm/internal/arch/arch.go

    	instructions["JL"] = x86.AJLT   /* alternate */
    	instructions["JLE"] = x86.AJLE  /* less than or equal (signed) (ZF = 1 || SF != OF) */
    	instructions["JLO"] = x86.AJCS  /* alternate */
    	instructions["JLS"] = x86.AJLS  /* lower or same (unsigned) (CF = 1 || ZF = 1) */
    	instructions["JLT"] = x86.AJLT  /* less than (signed) (SF != OF) */
    	instructions["JMI"] = x86.AJMI  /* negative (minus) (SF = 1) */
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  4. src/bufio/scan.go

    		s.err = err
    	}
    }
    
    // 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
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/doc.go

    identifiers not by parsing C code but by feeding carefully constructed
    programs into the system C compiler and interpreting the generated
    error messages, debug information, and object files. In practice,
    parsing these is significantly less work and more robust than parsing
    C source.
    
    Cgo first invokes gcc -E -dM on the preamble, in order to find out
    about simple #defines for constants and the like. These are recorded
    for later use.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  6. api/go1.18.txt

    pkg net/netip, method (Addr) IsMulticast() bool
    pkg net/netip, method (Addr) IsPrivate() bool
    pkg net/netip, method (Addr) IsUnspecified() bool
    pkg net/netip, method (Addr) IsValid() bool
    pkg net/netip, method (Addr) Less(Addr) bool
    pkg net/netip, method (Addr) MarshalBinary() ([]uint8, error)
    pkg net/netip, method (Addr) MarshalText() ([]uint8, error)
    pkg net/netip, method (Addr) Next() Addr
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  7. src/bufio/bufio_test.go

    		// get past the valid bytes. Here we return 5 valid bytes at the same time
    		// as an error, but test that we don't see the error from Discard.
    		{
    			name: "fill error, discard less",
    			r: newScriptedReader(func(p []byte) (n int, err error) {
    				if len(p) < 5 {
    					panic("unexpected small read")
    				}
    				return 5, errors.New("5-then-error")
    			}),
    			n:            4,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    <p>
    Comparison operators compare two operands and yield an untyped boolean value.
    </p>
    
    <pre class="grammar">
    ==    equal
    !=    not equal
    &lt;     less
    &lt;=    less or equal
    &gt;     greater
    &gt;=    greater or equal
    </pre>
    
    <p>
    In any comparison, the first operand
    must be <a href="#Assignability">assignable</a>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/bufio/bufio.go

    		}
    	}
    }
    
    // Read reads data into p.
    // It returns the number of bytes read into p.
    // The bytes are taken from at most one Read on the underlying [Reader],
    // hence n may be less than len(p).
    // To read exactly len(p) bytes, use io.ReadFull(b, p).
    // If the underlying [Reader] can return a non-zero count with io.EOF,
    // then this Read method can do so as well; see the [io.Reader] docs.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  10. src/archive/tar/reader.go

    		if sr.pos >= holeEnd && len(sr.sp) > 1 {
    			sr.sp = sr.sp[1:] // Ensure last fragment always remains
    		}
    	}
    
    	n = len(b0) - len(b)
    	switch {
    	case err == io.EOF:
    		return n, errMissData // Less data in dense file than sparse file
    	case err != nil:
    		return n, err
    	case sr.logicalRemaining() == 0 && sr.physicalRemaining() > 0:
    		return n, errUnrefData // More data in dense file than sparse file
    	case finished:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top