- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 123 for nul (0.03 sec)
-
src/archive/tar/testdata/gnu-long-nul.tar
Joe Tsai <******@****.***> 1442533177 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 03:12:47 UTC 2017 - 2.5K bytes - Viewed (0) -
src/archive/tar/testdata/pax-nul-xattrs.tar
Joe Tsai <******@****.***> 1442533177 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 11 03:12:47 UTC 2017 - 2.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall.go
) // ByteSliceFromString returns a NUL-terminated slice of bytes // containing the text of s. If s contains a NUL byte at any // location, it returns (nil, EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, EINVAL } a := make([]byte, len(s)+1) copy(a, s) return a, nil } // BytePtrFromString returns a pointer to a NUL-terminated array of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.8K bytes - Viewed (0) -
test/nul1.go
os.Exit(2) } fmt.Print(` package main var x = "in string ` + "\x00" + `" // ERROR "NUL" var y = ` + "`in raw string \x00 foo`" + ` // ERROR "NUL" // in comment ` + "\x00" + ` // ERROR "NUL" /* in other comment ` + "\x00" + ` */ // ERROR "NUL" /* in source code */ ` + "\x00" + `// ERROR "NUL" var xx = "in string ` + "\xc2\xff" + `" // ERROR "UTF-8"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 22:28:40 UTC 2016 - 1.2K bytes - Viewed (0) -
src/syscall/syscall.go
// containing the text of s. If s contains a NUL byte at any // location, it returns (nil, [EINVAL]). func ByteSliceFromString(s string) ([]byte, error) { if bytealg.IndexByteString(s, 0) != -1 { return nil, EINVAL } a := make([]byte, len(s)+1) copy(a, s) return a, nil } // StringBytePtr returns a pointer to a NUL-terminated array of bytes.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 3.8K bytes - Viewed (0) -
src/archive/tar/strconv.go
err error // Last error seen } // parseString parses bytes as a NUL-terminated C-style string. // If a NUL byte is not found then the whole slice is returned as a string. func (*parser) parseString(b []byte) string { if i := bytes.IndexByte(b, 0); i >= 0 { return string(b[:i]) } return string(b) } // formatString copies s into b, NUL-terminating if possible. func (f *formatter) formatString(b []byte, s string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 01 14:28:42 UTC 2023 - 9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/syscall.go
package windows // import "golang.org/x/sys/windows" import ( "bytes" "strings" "syscall" "unsafe" ) // ByteSliceFromString returns a NUL-terminated slice of bytes // containing the text of s. If s contains a NUL byte at any // location, it returns (nil, syscall.EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, syscall.EINVAL }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/syscall.go
) // ByteSliceFromString returns a NUL-terminated slice of bytes // containing the text of s. If s contains a NUL byte at any // location, it returns (nil, EINVAL). func ByteSliceFromString(s string) ([]byte, error) { if strings.IndexByte(s, 0) != -1 { return nil, EINVAL } a := make([]byte, len(s)+1) copy(a, s) return a, nil } // BytePtrFromString returns a pointer to a NUL-terminated array of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/go/internal/base/path.go
} // IsNull reports whether the path is a common name for the null device. // It returns true for /dev/null on Unix, or NUL (case-insensitive) on Windows. func IsNull(path string) bool { if path == os.DevNull { return true } if runtime.GOOS == "windows" { if strings.EqualFold(path, "NUL") { return true } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 20 19:17:27 UTC 2023 - 2K bytes - Viewed (0) -
src/make.bat
if "x%GOR...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 6.2K bytes - Viewed (0)