Qt 4.8
Static Public Functions | List of all members
QTextCodecUnalignedPointer Struct Reference

#include <qtextcodec_p.h>

Static Public Functions

static QTextCodecStateFreeFunction decode (const uint *src)
 
static void encode (uint *dst, QTextCodecStateFreeFunction fn)
 

Detailed Description

Definition at line 65 of file qtextcodec_p.h.

Functions

◆ decode()

static QTextCodecStateFreeFunction QTextCodecUnalignedPointer::decode ( const uint src)
inlinestatic

Definition at line 67 of file qtextcodec_p.h.

Referenced by QTextCodec::ConverterState::~ConverterState().

68  {
69  quintptr data;
70  memcpy(&data, src, sizeof(data));
71  return reinterpret_cast<QTextCodecStateFreeFunction>(data);
72  }
QIntegerForSizeof< void * >::Unsigned quintptr
Definition: qglobal.h:986
static const char * data(const QByteArray &arr)
void(* QTextCodecStateFreeFunction)(QTextCodec::ConverterState *)
Definition: qtextcodec_p.h:63

◆ encode()

static void QTextCodecUnalignedPointer::encode ( uint dst,
QTextCodecStateFreeFunction  fn 
)
inlinestatic

Definition at line 73 of file qtextcodec_p.h.

Referenced by QIconvCodec::convertToUnicode().

74  {
75  quintptr data = reinterpret_cast<quintptr>(fn);
76  memcpy(dst, &data, sizeof(data));
77  }
QIntegerForSizeof< void * >::Unsigned quintptr
Definition: qglobal.h:986
static const char * data(const QByteArray &arr)

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