Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for BytePtrToString (0.19 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall.go

    		s = s[:i]
    	}
    	return string(s)
    }
    
    // BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
    // If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
    // at a zero byte; if the zero byte is not present, the program may crash.
    func BytePtrToString(p *byte) string {
    	if p == nil {
    		return ""
    	}
    	if *p == 0 {
    		return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/plan9/syscall.go

    		s = s[:i]
    	}
    	return string(s)
    }
    
    // BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
    // If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
    // at a zero byte; if the zero byte is not present, the program may crash.
    func BytePtrToString(p *byte) string {
    	if p == nil {
    		return ""
    	}
    	if *p == 0 {
    		return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/syscall.go

    		s = s[:i]
    	}
    	return string(s)
    }
    
    // BytePtrToString takes a pointer to a sequence of text and returns the corresponding string.
    // If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated
    // at a zero byte; if the zero byte is not present, the program may crash.
    func BytePtrToString(p *byte) string {
    	if p == nil {
    		return ""
    	}
    	if *p == 0 {
    		return ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    		if fobj, ok := e.fds[peExt.Fd]; ok {
    			if fobj == fCookie {
    				delete(e.fds, peExt.Fd)
    			}
    		}
    	case PORT_SOURCE_FILE:
    		peExt.fobj = fCookie.fobj
    		peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
    		// Only remove the paths entry if it exists and this cookie matches
    		if fobj, ok := e.paths[peExt.Path]; ok {
    			if fobj == fCookie {
    				delete(e.paths, peExt.Path)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
Back to top