ADTF
3.18.2
|
Public Member Functions | |
cStringLengthProxy (const char *strValue) | |
tResult | Set (const char *) override |
Sets the given null-terminated string to the implementation. More... | |
size_t | GetLength () const override |
Gets the current size of the strng. More... | |
const char * | Get () const override |
Gets the pointer to the current associated nullterminated-string. More... | |
Private Attributes | |
const char * | m_strValue |
std::optional< size_t > | m_nSize |
Additional Inherited Members | |
Static Public Attributes inherited from IString | |
static constexpr size_t | InvalidPos = g_npos |
Invalid Position size. | |
Definition at line 269 of file string_intf.h.
|
inlineoverridevirtual |
Gets the pointer to the current associated nullterminated-string.
Implements IString.
Definition at line 292 of file string_intf.h.
|
inlineoverridevirtual |
Gets the current size of the strng.
Usually this is in Bytes (null-termination is not included!)
If | not valid return InvalidPos! |
Implements IString.
Definition at line 282 of file string_intf.h.
|
inlineoverridevirtual |
Sets the given null-terminated string to the implementation.
strValue | [in] The null-terminated string to set. |
ERR_NOERROR | The value is set successfully |
ERR_MEMORY | The value can not be set. Too long. No truncating provided. |
Implements IString.
Definition at line 277 of file string_intf.h.
References RETURN_ERROR.