node-ctypes - v2.17.1
    Preparing search index...

    Function create_unicode_buffer

    • Create a wide string buffer (wchar_t, null-terminated).

      On Windows, this is UTF-16LE. On Unix, UTF-32.

      Python equivalent: ctypes.create_unicode_buffer. As with create_string_buffer, the result is a Buffer: length counts bytes (Python's len() counts characters: use sizeof(buf) / sizeof(c_wchar)); .value takes only a string.

      Parameters

      • init: string | number

        Size in characters, or a string to copy

      • Optionalsize: number

        Size in characters (null: computed from init)

      Returns WideBuffer