Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 458 for gostringw (0.29 sec)

  1. src/runtime/string.go

    // This is exported via linkname to assembly in syscall (for Plan9) and cgo.
    //
    //go:linkname gostring
    func gostring(p *byte) string {
    	l := findnull(p)
    	if l == 0 {
    		return ""
    	}
    	s, b := rawstring(l)
    	memmove(unsafe.Pointer(&b[0]), unsafe.Pointer(p), uintptr(l))
    	return s
    }
    
    // internal_syscall_gostring is a version of gostring for internal/syscall/unix.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    func MemclrBytes(b []byte) {
    	s := (*slice)(unsafe.Pointer(&b))
    	memclrNoHeapPointers(s.array, uintptr(s.len))
    }
    
    const HashLoad = hashLoad
    
    // entry point for testing
    func GostringW(w []uint16) (s string) {
    	systemstack(func() {
    		s = gostringw(&w[0])
    	})
    	return
    }
    
    var Open = open
    var Close = closefd
    var Read = read
    var Write = write
    
    func Envs() []string     { return envs }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    C.sizeof_struct_stat.
    
    A C function may be declared in the Go file with a parameter type of
    the special name _GoString_. This function may be called with an
    ordinary Go string value. The string length, and a pointer to the
    string contents, may be accessed by calling the C functions
    
    	size_t _GoStringLen(_GoString_ s);
    	const char *_GoStringPtr(_GoString_ s);
    
    These functions are only available in the preamble, not in other C
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	}
    	return t
    }
    
    func (t *Trinary) GoString() string {
    	return t.goString(0, "")
    }
    
    func (t *Trinary) goString(indent int, field string) string {
    	return fmt.Sprintf("%*s%sTrinary:\n%s\n%s\n%s\n%s", indent, "", field,
    		t.Op.goString(indent+2, "Op: "),
    		t.First.goString(indent+2, "First: "),
    		t.Second.goString(indent+2, "Second: "),
    		t.Third.goString(indent+2, "Third: "))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/test.go

    	}
    }
    
    // api
    
    const greeting = "hello, world"
    
    type testPair struct {
    	Name      string
    	Got, Want interface{}
    }
    
    var testPairs = []testPair{
    	{"GoString", C.GoString(C.greeting), greeting},
    	{"GoStringN", C.GoStringN(C.greeting, 5), greeting[:5]},
    	{"GoBytes", C.GoBytes(unsafe.Pointer(C.greeting), 5), []byte(greeting[:5])},
    }
    
    func testHelpers(t *testing.T) {
    	for _, pair := range testPairs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ppc64/ssa.go

    		// and used as the new base register and the offset field in the instruction
    		// can be set to zero.
    
    		// This same problem can happen with gostrings since the final offset is not
    		// known yet, but could be unaligned after the relocation is resolved.
    		// So gostrings are handled the same way.
    
    		// This allows the MOVDload and MOVWload to be generated in more cases and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  7. src/fmt/print.go

    // such as [Print].
    type Stringer interface {
    	String() string
    }
    
    // GoStringer is implemented by any value that has a GoString method,
    // which defines the Go syntax for that value.
    // The GoString method is used to print values passed as an operand
    // to a %#v format.
    type GoStringer interface {
    	GoString() string
    }
    
    // FormatString returns a string representing the fully qualified formatting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/ResolutionOutput.kt

        receiver?.toString()?.plus(".").orEmpty() + buildString {
            if (function is DataConstructor) {
                val fqn = when (val ref = function.dataClass) {
                    is DataTypeRef.Name -> ref.fqName.toString()
                    is DataTypeRef.Type -> (ref.dataType as? DataClass)?.name?.qualifiedName
                        ?: ref.dataType.toString()
                }
                append(fqn)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r50/ArgumentPassingCrossVersionTest.groovy

            then:
            output1.toString().contains(ARG_1)
            output1.toString().contains(ARG_2)
    
            when:
            String output2 = runBuild { launcher -> launcher.addArguments(["-P$ARG_1" as String]).addArguments(["-P$ARG_2" as String]) }
    
            then:
            output2.toString().contains(ARG_1)
            output2.toString().contains(ARG_2)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 7K bytes
    - Viewed (0)
  10. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/collect/PersistentListTest.groovy

            elements << [["a"], ["a", "b"]]
        }
    
        def "has a nice toString method"() {
            expect:
            PersistentList.of().toString() == "Nil"
            PersistentList.of("a").toString() == "a"
            PersistentList.of("a", "b").toString() == "a : b"
            PersistentList.of("a", "b", "c").toString() == "a : b : c"
            PersistentList.of("a", "b", "c", "d").toString() == "a : b : c : d"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top