dxd - dynax driver framework 3.0.1d223
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx::usb::descriptor::string Struct Reference

a string descriptor at its largest, the same on every platform: UTF-16LE, its length device supplied and untrusted; inside it head is its base's injected class name, so the union's member is named qualified More...

#include <dx_usb.h>

Public Member Functions

size_t operator() (char *utf8, size_t size) const noexcept
 the characters as UTF-8 into utf8, terminated and cut at a character's boundary, surrogate pairs joined, a lone surrogate U+FFFD; returns the bytes written

Public Attributes

char16_t bString [(static_cast< decltype(descriptor::head.bLength)>(-1) - sizeof(decltype(descriptor::head)))/sizeof(char16_t)]

Detailed Description

a string descriptor at its largest, the same on every platform: UTF-16LE, its length device supplied and untrusted; inside it head is its base's injected class name, so the union's member is named qualified

Member Function Documentation

◆ operator()()

size_t dx::usb::descriptor::string::operator() ( char * utf8,
size_t size ) const
inlinenoexcept

the characters as UTF-8 into utf8, terminated and cut at a character's boundary, surrogate pairs joined, a lone surrogate U+FFFD; returns the bytes written

Member Data Documentation

◆ bString

char16_t dx::usb::descriptor::string::bString[(static_cast< decltype(descriptor::head.bLength)>(-1) - sizeof(decltype(descriptor::head)))/sizeof(char16_t)]

as many as bLength can state


The documentation for this struct was generated from the following file:

(c) copyright 2009 dynamic acoustics e.U. generated on

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.