Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for male (0.2 sec)

  1. src/bytes/buffer_test.go

    		}
    
    		rlen := rand.Intn(len(testString))
    		fub := make([]byte, rlen)
    		n, _ := buf.Read(fub)
    		s = s[n:]
    	}
    	empty(t, "TestMixedReadsAndWrites (2)", &buf, s, make([]byte, buf.Len()))
    }
    
    func TestCapWithPreallocatedSlice(t *testing.T) {
    	buf := NewBuffer(make([]byte, 10))
    	n := buf.Cap()
    	if n != 10 {
    		t.Errorf("expected 10, got %d", n)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue26743.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Issue 26743: typedef of uint leads to inconsistent typedefs error.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 356 bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    	ast1 := parse(abspath, src, parser.SkipObjectResolution|parser.ParseComments)
    	ast2 := parse(abspath, src, parser.SkipObjectResolution)
    
    	f.Package = ast1.Name.Name
    	f.Name = make(map[string]*Name)
    	f.NamePos = make(map[*Name]token.Pos)
    
    	// In ast1, find the import "C" line and get any extra C preamble.
    	sawC := false
    	for _, decl := range ast1.Decls {
    		switch decl := decl.(type) {
    		case *ast.GenDecl:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    Call             Type T     Result
    
    make(T, n)       slice      slice of type T with length n and capacity n
    make(T, n, m)    slice      slice of type T with length n and capacity m
    
    make(T)          map        map of type T
    make(T, n)       map        map of type T with initial space for approximately n elements
    
    make(T)          channel    unbuffered channel of type T
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    	}
    }
    
    func TestInvalidFiles(t *testing.T) {
    	const size = 1024 * 70 // 70kb
    	b := make([]byte, size)
    
    	// zeroes
    	_, err := NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("zeroes: error=%v, want %v", err, ErrFormat)
    	}
    
    	// repeated directoryEndSignatures
    	sig := make([]byte, 4)
    	binary.LittleEndian.PutUint32(sig, directoryEndSignature)
    	for i := 0; i < size-4; i += 4 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/doc.go

    use. You can do this by setting the generic CC_FOR_TARGET or the
    more specific CC_FOR_${GOOS}_${GOARCH} (for example, CC_FOR_linux_arm)
    environment variable when building the toolchain using make.bash,
    or you can set the CC environment variable any time you run the go tool.
    
    The CXX_FOR_TARGET, CXX_FOR_${GOOS}_${GOARCH}, and CXX
    environment variables work in a similar way for C++ code.
    
    # Go references to C
    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)
  7. src/cmd/cgo/internal/test/callback.go

    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"unsafe"
    )
    
    // Pass a func value from nestedCall to goCallback using an integer token.
    var callbackMutex sync.Mutex
    var callbackToken int
    var callbackFuncs = make(map[int]func())
    
    // nestedCall calls into C, back into Go, and finally to f.
    func nestedCall(f func()) {
    	// callback(x) calls goCallback(x)
    	callbackMutex.Lock()
    	callbackToken++
    	i := callbackToken
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/operand_test.go

    	{"(1*4)(DI)", "4(DI)"},
    	{"(4*4)(BP)", "16(BP)"},
    	{"(AX)", "(AX)"},
    	{"(BP)(CX*4)", "(BP)(CX*4)"},
    	{"(BP*8)", "0(BP*8)"},
    	{"(BX)", "(BX)"},
    	{"(SP)", "(SP)"},
    	{"*AX", "AX"}, // TODO: Should make * illegal here; a simple alias for JMP AX.
    	{"*runtimeĀ·_GetStdHandle(SB)", "*runtime._GetStdHandle(SB)"},
    	{"-(4+12)(DI)", "-16(DI)"},
    	{"-1(DI)(BX*1)", "-1(DI)(BX*1)"},
    	{"-96(DI)(BX*1)", "-96(DI)(BX*1)"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  9. 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")
    	c.byte = c.Ident("byte")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  10. src/all.bash

    #!/usr/bin/env bash
    # Copyright 2009 The Go Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    set -e
    if [ ! -f make.bash ]; then
    	echo 'all.bash must be run from $GOROOT/src' 1>&2
    	exit 1
    fi
    . ./make.bash "$@" --no-banner
    bash run.bash --no-rebuild
    Shell Script
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 11 19:53:58 GMT 2024
    - 377 bytes
    - Viewed (0)
Back to top