- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 123 for nul (0.02 sec)
-
src/cmd/vendor/golang.org/x/sys/windows/env_windows.go
err = CreateEnvironmentBlock(&block, token, inheritExisting) if err != nil { return nil, err } defer DestroyEnvironmentBlock(block) size := unsafe.Sizeof(*block) for *block != 0 { // find NUL terminator end := unsafe.Pointer(block) for *(*uint16)(end) != 0 { end = unsafe.Add(end, size) } entry := unsafe.Slice(block, (uintptr(end)-uintptr(unsafe.Pointer(block)))/size)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 20:35:26 UTC 2024 - 1.3K bytes - Viewed (0) -
src/syscall/syscall_windows.go
// StringToUTF16 returns the UTF-16 encoding of the UTF-8 string s, // with a terminating NUL added. If s contains a NUL byte this // function panics instead of returning an error. // // Deprecated: Use [UTF16FromString] instead. func StringToUTF16(s string) []uint16 { a, err := UTF16FromString(s) if err != nil { panic("syscall: string with NUL passed to StringToUTF16") } return a }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 52.7K bytes - Viewed (0) -
src/syscall/exec_windows.go
} return string(b) } // createEnvBlock converts an array of environment strings into // the representation required by CreateProcess: a sequence of NUL // terminated strings followed by a nil. // Last bytes are two UCS-2 NULs, or four NUL bytes. // If any string contains a NUL, it returns (nil, EINVAL). func createEnvBlock(envv []string) ([]uint16, error) { if len(envv) == 0 { return utf16.Encode([]rune("\x00\x00")), nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 18:29:48 UTC 2023 - 10.3K bytes - Viewed (0) -
src/syscall/env_windows.go
return nil } defer FreeEnvironmentStrings(envp) r := make([]string, 0, 50) // Empty with room to grow. const size = unsafe.Sizeof(*envp) for *envp != 0 { // environment block ends with empty string // find NUL terminator end := unsafe.Pointer(envp) for *(*uint16)(end) != 0 { end = unsafe.Add(end, size) } entry := unsafe.Slice(envp, (uintptr(end)-uintptr(unsafe.Pointer(envp)))/size)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 04 15:31:54 UTC 2023 - 2K bytes - Viewed (0) -
test/import6.go
// Each of these pairs tests both `` vs "" strings // and also use of invalid characters spelled out as // escape sequences and written directly. // For example `"\x00"` tests import "\x00" // while "`\x00`" tests import `<actual-NUL-byte>`. import "" // ERROR "import path" import `` // ERROR "import path" import "\x00" // ERROR "import path" import `\x00` // ERROR "import path" import "\x7f" // ERROR "import path"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 1.4K bytes - Viewed (0) -
src/syscall/syscall_windows_test.go
if err != nil { if strings.Contains(tst, "\x00") { t.Skipf("input %q contains a NUL byte", tst) } t.Fatalf("UTF16FromString(%q): %v", tst, err) } t.Logf("UTF16FromString(%q) = %04x", tst, res) if len(res) < 1 || res[len(res)-1] != 0 { t.Fatalf("missing NUL terminator") } if len(res) > len(tst)+1 { t.Fatalf("len(%04x) > len(%q)+1", res, tst) } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 16:33:09 UTC 2023 - 5.7K bytes - Viewed (0) -
src/syscall/exec_plan9.go
return } name = gstringb(buf[nameOffset:size]) rest = buf[size:] return } // StringSlicePtr converts a slice of strings to a slice of pointers // to NUL-terminated byte arrays. If any string contains a NUL byte // this function panics instead of returning an error. // // Deprecated: Use SlicePtrFromStrings instead. func StringSlicePtr(ss []string) []*byte { bb := make([]*byte, len(ss)+1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 13.3K bytes - Viewed (0) -
src/compress/gzip/gzip_test.go
}{ {"", true}, {"ASCII is OK", true}, {"unless it contains a NUL\x00", false}, {"no matter where \x00 occurs", false}, {"\x00\x00\x00", false}, {"Látin-1 also passes (U+00E1)", true}, {"but LĀtin Extended-A (U+0100) does not", false}, {"neither does 日本語", false}, {"invalid UTF-8 also \xffails", false}, {"\x00 as does Látin-1 with NUL", false}, } for _, tc := range testCases { buf := new(bytes.Buffer)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:10:06 UTC 2024 - 6K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-printers.h
// value is also printed; when T is a (const) char pointer, both the // pointer value and the NUL-terminated string it points to are // printed. // // We also provide some convenient wrappers: // // // Prints a value to a string. For a (const or not) char // // pointer, the NUL-terminated string (but not the pointer) is // // printed. // std::string ::testing::PrintToString(const T& value); //
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 30.9K bytes - Viewed (0) -
src/go/build/read_test.go
testRead(t, readCommentsTests, readComments) } var readFailuresTests = []readTest{ { `package`, "syntax error", }, { "package p\n\x00\nimport `math`\n", "unexpected NUL in input", }, { `package p; import`, "syntax error", }, { `package p; import "`, "syntax error", }, { "package p; import ` \n\n", "syntax error", }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 6K bytes - Viewed (0)