Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for StringToUTF16 (0.25 sec)

  1. src/os/os_windows_test.go

    	off := len(rd.pathBuf) * 2
    	rd.pathBuf = append(rd.pathBuf, s...)
    	return uint16(off)
    }
    
    func (rd *reparseData) addString(s string) (offset, length uint16) {
    	p := syscall.StringToUTF16(s)
    	return rd.addUTF16s(p), uint16(len(p)-1) * 2 // do not include terminating NUL in the length (as per PrintNameLength and SubstituteNameLength documentation)
    }
    
    func (rd *reparseData) addSubstituteName(name string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  2. src/syscall/syscall_windows.go

    	"sync"
    	"unsafe"
    )
    
    type Handle uintptr
    
    const InvalidHandle = ^Handle(0)
    
    // 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 {
    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/syscall_windows.go

    	WAIT_IO_COMPLETION = 0x000000C0
    )
    
    // StringToUTF16 is deprecated. Use UTF16FromString instead.
    // If s contains a NUL byte this function panics instead of
    // returning an error.
    func StringToUTF16(s string) []uint16 {
    	a, err := UTF16FromString(s)
    	if err != nil {
    		panic("windows: string with NUL passed to StringToUTF16")
    	}
    	return a
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  4. api/go1.16.txt

    pkg syscall (windows-386), func FormatMessage //deprecated
    pkg syscall (windows-386), func StringToUTF16 //deprecated
    pkg syscall (windows-386), func StringToUTF16Ptr //deprecated
    pkg syscall (windows-amd64), func FormatMessage //deprecated
    pkg syscall (windows-amd64), func StringToUTF16 //deprecated
    pkg syscall (windows-amd64), func StringToUTF16Ptr //deprecated
    pkg syscall, func StringBytePtr //deprecated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Stderr", Var, 0},
    		{"Stdin", Var, 0},
    		{"Stdout", Var, 0},
    		{"StringBytePtr", Func, 0},
    		{"StringByteSlice", Func, 0},
    		{"StringSlicePtr", Func, 0},
    		{"StringToSid", Func, 0},
    		{"StringToUTF16", Func, 0},
    		{"StringToUTF16Ptr", Func, 0},
    		{"Symlink", Func, 0},
    		{"Sync", Func, 0},
    		{"SyncFileRange", Func, 0},
    		{"SysProcAttr", Type, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg syscall (windows-386), func Socket(int, int, int) (Handle, error)
    pkg syscall (windows-386), func StringToSid(string) (*SID, error)
    pkg syscall (windows-386), func StringToUTF16(string) []uint16
    pkg syscall (windows-386), func StringToUTF16Ptr(string) *uint16
    pkg syscall (windows-386), func Syscall(uintptr, uintptr, uintptr, uintptr, uintptr) (uintptr, uintptr, Errno)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top