Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/syscall/syscall_bsd.go

    		// Some BSDs include the trailing NUL in the length, whereas
    		// others do not. Work around this by subtracting the leading
    		// family and len. The path is then scanned to see if a NUL
    		// terminator still exists within the length.
    		n := int(pp.Len) - 2 // subtract leading Family, Len
    		for i := 0; i < n; i++ {
    			if pp.Path[i] == 0 {
    				// found early NUL; assume Len included the NUL
    				// or was overestimating.
    				n = i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    		// Some BSDs include the trailing NUL in the length, whereas
    		// others do not. Work around this by subtracting the leading
    		// family and len. The path is then scanned to see if a NUL
    		// terminator still exists within the length.
    		n := int(pp.Len) - 2 // subtract leading Family, Len
    		for i := 0; i < n; i++ {
    			if pp.Path[i] == 0 {
    				// found early NUL; assume Len included the NUL
    				// or was overestimating.
    				n = i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top