Mapper  0.9.0
API documentation
Public Member Functions | Public Attributes | List of all members
Ocd::Utf8PascalString< N > Struct Template Reference

A UTF-8-encoded string of max. More...

#include <ocd_types.h>

Public Member Functions

 Q_STATIC_ASSERT (N >=3)
 
Utf8PascalStringoperator= (const QString &value)
 

Public Attributes

unsigned char length
 
char data [N]
 

Detailed Description

template<unsigned char N>
struct Ocd::Utf8PascalString< N >

A UTF-8-encoded string of max.

N characters with a pascal-style binary representation.

The first byte indicates the length, the following N bytes contain the actual character data. Unused bytes are filled with zero.

Member Function Documentation

◆ operator=()

template<unsigned char N>
Utf8PascalString& Ocd::Utf8PascalString< N >::operator= ( const QString value)
inline

◆ Q_STATIC_ASSERT()

template<unsigned char N>
Ocd::Utf8PascalString< N >::Q_STATIC_ASSERT ( N >=  3)

Member Data Documentation

◆ data

template<unsigned char N>
char Ocd::Utf8PascalString< N >::data[N]

◆ length

template<unsigned char N>
unsigned char Ocd::Utf8PascalString< N >::length

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