Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for fruits (0.16 sec)

  1. doc/go1.17_spec.html

    <p>
    The built-in functions <code>len</code> and <code>cap</code> take arguments
    of various types and return a result of type <code>int</code>.
    The implementation guarantees that the result always fits into an <code>int</code>.
    </p>
    
    <pre class="grammar">
    Call      Argument type    Result
    
    len(s)    string type      string length in bytes
              [n]T, *[n]T      array length (== n)
    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)
  2. src/archive/zip/zip_test.go

    	if testing.Short() {
    		t.Skip("slow test; skipping")
    	}
    	t.Parallel()
    	// Test a zip file with uncompressed size 0xFFFFFFFF.
    	// That's the magic marker for a 64-bit file, so even though
    	// it fits in a 32-bit field we must use the 64-bit field.
    	// Go 1.5 and earlier got this wrong,
    	// writing an invalid zip file.
    	const size = 1<<32 - 1 - int64(len("END\n")) // before the "END\n" part
    	buf := testZip64(t, size)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. doc/go_spec.html

    </pre>
    
    <p>
    If the capacity of <code>s</code> is not large enough to fit the additional
    values, <code>append</code> <a href="#Allocation">allocates</a> a new, sufficiently large underlying
    array that fits both the existing slice elements and the additional values.
    Otherwise, <code>append</code> re-uses the underlying array.
    </p>
    
    <pre>
    s0 := []int{0, 0}
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  4. src/archive/tar/strconv.go

    	// Add leading zeros, but leave room for a NUL.
    	if n := len(b) - len(s) - 1; n > 0 {
    		s = strings.Repeat("0", n) + s
    	}
    	f.formatString(b, s)
    }
    
    // fitsInOctal reports whether the integer x fits in a field n-bytes long
    // using octal encoding with the appropriate NUL terminator.
    func fitsInOctal(n int, x int64) bool {
    	octBits := uint(n-1) * 3
    	return x >= 0 && (n >= 22 || x < 1<<octBits)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  5. src/bytes/buffer.go

    	copy(b2, b)
    	return b2[:len(b)]
    }
    
    // WriteTo writes data to w until the buffer is drained or an error occurs.
    // The return value n is the number of bytes written; it always fits into an
    // int, but it is int64 to match the io.WriterTo interface. Any error
    // encountered during the write is also returned.
    func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
    	b.lastRead = opInvalid
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/arm64.s

    	MOVW	$0, (R1)  // 3f0000b9
    	MOVWU	$0, (R1)  // 3f0000b9
    	MOVH	$0, (R1)  // 3f000079
    	MOVHU	$0, (R1)  // 3f000079
    	MOVB	$0, (R1)  // 3f000039
    	MOVBU	$0, (R1)  // 3f000039
    
    // small offset fits into instructions
    	MOVB	R1, 1(R2) // 41040039
    	MOVH	R1, 1(R2) // 41100078
    	MOVH	R1, 2(R2) // 41040079
    	MOVW	R1, 1(R2) // 411000b8
    	MOVW	R1, 4(R2) // 410400b9
    	MOVD	R1, 1(R2) // 411000f8
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
Back to top