Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for nul (0.02 sec)

  1. 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)
  2. 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)
  3. src/syscall/exec_unix.go

    // SlicePtrFromStrings converts a slice of strings to a slice of
    // pointers to NUL-terminated byte arrays. If any string contains
    // a NUL byte, it returns (nil, [EINVAL]).
    func SlicePtrFromStrings(ss []string) ([]*byte, error) {
    	n := 0
    	for _, s := range ss {
    		if bytealg.IndexByteString(s, 0) != -1 {
    			return nil, EINVAL
    		}
    		n += len(s) + 1 // +1 for NUL
    	}
    	bb := make([]*byte, len(ss)+1)
    	b := make([]byte, n)
    	n = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. src/archive/tar/reader.go

    				hdr.Format = FormatUnknown // Non-ASCII characters in block.
    			}
    			nul := func(b []byte) bool { return int(b[len(b)-1]) == 0 }
    			if !(nul(v7.size()) && nul(v7.mode()) && nul(v7.uid()) && nul(v7.gid()) &&
    				nul(v7.modTime()) && nul(ustar.devMajor()) && nul(ustar.devMinor())) {
    				hdr.Format = FormatUnknown // Numeric fields must end in NUL
    			}
    		case format.has(formatSTAR):
    			star := tr.blk.toSTAR()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  5. src/net/cgo_unix.go

    //
    //	 Source		Encoding			Maximum length of single name entry
    //	 Unicast DNS		ASCII or			<=253 + a NUL terminator
    //				Unicode in RFC 5892		252 * total number of labels + delimiters + a NUL terminator
    //	 Multicast DNS	UTF-8 in RFC 5198 or		<=253 + a NUL terminator
    //				the same as unicast DNS ASCII	<=253 + a NUL terminator
    //	 Local database	various				depends on implementation
    const (
    	nameinfoLen    = 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. src/path/filepath/path_test.go

    	{"a/../a", true},
    	{"a/", true},
    	{"a/.", true},
    	{"a/./b/./c", true},
    	{`a/../b:/../../c`, false},
    }
    
    var winislocaltests = []IsLocalTest{
    	{"NUL", false},
    	{"nul", false},
    	{"nul ", false},
    	{"nul.", false},
    	{"a/nul:", false},
    	{"a/nul : a", false},
    	{"com0", true},
    	{"com1", false},
    	{"com2", false},
    	{"com3", false},
    	{"com4", false},
    	{"com5", false},
    	{"com6", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  7. src/runtime/pprof/vminfo_darwin_test.go

    	// __LINKEDIT                  103b00000-103c98000    [ 1632K  1616K     0K     0K] r--/r-SM=COW          /Users/USER/*/gopls
    	// dyld private memory         103cd8000-103cdc000    [   16K     0K     0K     0K] ---/--SM=NUL
    	// shared memory               103ce4000-103ce8000    [   16K    16K    16K     0K] r--/r-SM=SHM
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 19:59:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  8. src/path/filepath/path_windows_test.go

    	for _, test := range []struct {
    		path string
    		want string
    	}{
    		{`C:\foo`, `C:\foo`},
    		{`\\host\share\foo`, `\\host\share\foo`},
    		{`\\host`, `\\host`},
    		{`\\.\NUL`, `\\.\NUL`},
    		{`NUL`, `\\.\NUL`},
    		{`COM1`, `\\.\COM1`},
    		{`a/NUL`, `\\.\NUL`},
    	} {
    		got, err := filepath.Abs(test.path)
    		if err != nil || got != test.want {
    			t.Errorf("Abs(%q) = %q, %v; want %q, nil", test.path, got, err, test.want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:38:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      if (!string_separator) {
        return func.emitError()
               << "'string_separator' attribute is not set or not a string";
      }
      // StringAttrs are not guaranteed to be NUL terminated, but flexbuffers
      // strings expect NUL terminated strings.
      std::string string_separator_str(string_separator.getValue().data(),
                                       string_separator.getValue().size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. 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)
Back to top