Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
Systemic::ComHelper Namespace Reference

Helper methods for COM strings. More...

Functions

const char * copyToComBuffer (const char *str)
 Copy the UTF-8 C string into a COM buffer.
 
const char * copyToComBuffer (const wchar_t *str)
 Convert the UTF-16 C string to UTF-8 and copy the result into a COM buffer.
 
void freeComBuffer (void *buffer)
 Free a COM buffer.
 

Detailed Description

Helper methods for COM strings.

Function Documentation

◆ copyToComBuffer() [1/2]

const char * Systemic::ComHelper::copyToComBuffer ( const char *  str)

Copy the UTF-8 C string into a COM buffer.

Parameters
TheUTF-8 C string.
Returns
The COM buffer containing a copy of the string.

◆ copyToComBuffer() [2/2]

const char * Systemic::ComHelper::copyToComBuffer ( const wchar_t *  str)

Convert the UTF-16 C string to UTF-8 and copy the result into a COM buffer.

Parameters
TheUTF-16 C string.
Returns
The COM buffer containing a copy of the string once converted to UTF-8.

◆ freeComBuffer()

void Systemic::ComHelper::freeComBuffer ( void *  buffer)

Free a COM buffer.

Parameters
Thebuffer to free.