utf16

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PtrToString

func PtrToString(p unsafe.Pointer) string

PtrToString is like UTF16ToString, but takes *uint16 as a parameter instead of []uint16.

func StringToUTF16Ptr

func StringToUTF16Ptr(s string) *uint16

StringToUTF16Ptr returns the pointer to UTF-8 encoded string. It will silently return an invalid pointer if `s` argument contains a NUL byte at any location.

Types

type UnicodeString

type UnicodeString struct {
	Length    uint16
	MaxLength uint16
	Buffer    *uint16
}

UnicodeString stores the size and the memory buffer of the unicode string.

func (UnicodeString) String

func (u UnicodeString) String() string

String returns the native string from the Unicode stream.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL