Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UTF16PtrToString (0.15 sec)

  1. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    		return nil, err
    	}
    	return &a[0], nil
    }
    
    // UTF16PtrToString takes a pointer to a UTF-16 sequence and returns the corresponding UTF-8 encoded string.
    // If the pointer is nil, it returns the empty string. It assumes that the UTF-16 sequence is terminated
    // at a zero word; if the zero word is not present, the program may crash.
    func UTF16PtrToString(p *uint16) string {
    	if p == nil {
    		return ""
    	}
    	if *p == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  2. src/syscall/syscall_windows.go

    			maxLen += 3
    		}
    	}
    	buf := decodeWTF16(s, make([]byte, 0, maxLen))
    	return unsafe.String(unsafe.SliceData(buf), len(buf))
    }
    
    // utf16PtrToString is like UTF16ToString, but takes *uint16
    // as a parameter instead of []uint16.
    func utf16PtrToString(p *uint16) string {
    	if p == nil {
    		return ""
    	}
    	end := unsafe.Pointer(p)
    	n := 0
    	for *(*uint16)(end) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    	var sddl *uint16
    	err := convertSecurityDescriptorToStringSecurityDescriptor(sd, 1, 0xff, &sddl, nil)
    	if err != nil {
    		return ""
    	}
    	defer LocalFree(Handle(unsafe.Pointer(sddl)))
    	return UTF16PtrToString(sddl)
    }
    
    // ToAbsolute converts a self-relative security descriptor into an absolute one.
    func (selfRelativeSD *SECURITY_DESCRIPTOR) ToAbsolute() (absoluteSD *SECURITY_DESCRIPTOR, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
Back to top