win32

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMultiSz

func ParseMultiSz(buf []uint16) [][]uint16

ParseMultiSz splits a UTF-16 encoded MULTI_SZ buffer (Windows style) into individual UTF-16 string slices.

A MULTI_SZ buffer is a sequence of UTF-16 strings separated by single null terminators (0x0000) and terminated by an extra null (i.e., two consecutive nulls) to mark the end of the list.

Example layout in memory (UTF-16):

"foo\0bar\0baz\0\0"

Given such a []uint16, this function returns a [][]uint16 where each inner slice is one null-terminated string segment without the trailing null.

The returned slices reference the original buffer (no copying).

Types

This section is empty.

Jump to

Keyboard shortcuts

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