Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for decodeWTF16 (0.08 sec)

  1. src/syscall/syscall_windows.go

    			// If it is half of a pair, we will add 3 for the second surrogate
    			// (total of 6) and overestimate by 2 bytes for the pair,
    			// since the resulting rune only requires 4 bytes.
    			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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
Back to top