TIBCO Adapter SDK C++ Reference
MChar::data
MChar
Retrieve the data encapsulated by this MChar. using best-case conversion if required.
Remarks
Retrieving data by calling data() or wdata() can potentially be an expensive operation. The SDK stores data in one of two formats internally. If you pass in a string in a different format (for example, M_JIS) it is converted to the appropriate internal SDK format, e.g. M_UTF16. If you later request the data as M_JIS, they are converted again.

The method MChar::size() is deprecated in SDK 3.1 and later in favor of numBytes() and numChars().

The method MChar::getData() is deprecated in SDK 3.1 and later.

Parameters
Parameters Description
char const * typeToGet = NULL Must be one of the encodings listed below or in MEncoding.h.
unsigned int * pNumValidBytes = NULL Number of Bytes. The SDK supports a large number of encoding types for char* character values. For a complete list, see the header file MEncoding.h. Here’s a list of the
types  
Declaration
virtual char const * data(char const * typeToGet = NULL, unsigned int * pNumValidBytes = NULL) const;
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.