Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 123 for nul (0.03 sec)

  1. src/internal/syscall/execenv/execenv_windows.go

    	if err != nil {
    		return nil, err
    	}
    	defer windows.DestroyEnvironmentBlock(blockp)
    
    	const size = unsafe.Sizeof(*blockp)
    	for *blockp != 0 { // environment block ends with empty string
    		// find NUL terminator
    		end := unsafe.Add(unsafe.Pointer(blockp), size)
    		for *(*uint16)(end) != 0 {
    			end = unsafe.Add(end, size)
    		}
    
    		entry := unsafe.Slice(blockp, (uintptr(end)-uintptr(unsafe.Pointer(blockp)))/2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. 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)
  3. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

              data.ranges.escapeDataString(),
              data.mappings.escapeDataString(),
            )
            .build(),
        )
        .build()
    }
    
    /**
     * KotlinPoet doesn't really know what to do with a string containing NUL, BEL, DEL, etc. We also
     * don't want to perform `trimMargin()` at runtime.
     */
    fun String.escapeDataString(): String {
      return buildString {
        for (codePoint in ******@****.***ints()) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    // command lines are passed around.
    // DecomposeCommandLine returns an error if commandLine contains NUL.
    func DecomposeCommandLine(commandLine string) ([]string, error) {
    	if len(commandLine) == 0 {
    		return []string{}, nil
    	}
    	utf16CommandLine, err := UTF16FromString(commandLine)
    	if err != nil {
    		return nil, errorspkg.New("string with NUL passed to DecomposeCommandLine")
    	}
    	var argc int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. src/net/rpc/client_test.go

    	}
    }
    
    // Test that errors in gob shut down the connection. Issue 7689.
    
    type R struct {
    	msg []byte // Not exported, so R does not work with gob.
    }
    
    type S struct{}
    
    func (s *S) Recv(nul *struct{}, reply *R) error {
    	*reply = R{[]byte("foo")}
    	return nil
    }
    
    func TestGobError(t *testing.T) {
    	defer func() {
    		err := recover()
    		if err == nil {
    			t.Fatal("no error")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  7. src/os/exec/env_test.go

    		{
    			// Filter out entries containing NULs.
    			in:      []string{"A=a\x00b", "B=b", "C\x00C=c"},
    			want:    []string{"B=b"},
    			wantErr: true,
    		},
    		{
    			// Plan 9 needs to preserve environment variables with NUL (#56544).
    			nulOK: true,
    			in:    []string{"path=one\x00two"},
    			want:  []string{"path=one\x00two"},
    		},
    	}
    	for _, tt := range tests {
    		got, err := dedupEnvCase(tt.noCase, tt.nulOK, tt.in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 01:23:16 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top