|
| cStringLengthProxy (const char *strValue) |
|
tResult | Set (const char *) override |
| Sets the given null-terminated string to the implementation.
|
|
size_t | GetLength () const override |
| Gets the current size of the strng.
|
|
const char * | Get () const override |
| Gets the pointer to the current associated nullterminated-string.
|
|
Definition at line 269 of file string_intf.h.
◆ cStringLengthProxy()
◆ Get()
const char * Get |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the pointer to the current associated nullterminated-string.
- Returns
- The pointer to the null-terminated string.
Implements IString.
Definition at line 292 of file string_intf.h.
◆ GetLength()
size_t GetLength |
( |
| ) |
const |
|
inlineoverridevirtual |
Gets the current size of the strng.
Usually this is in Bytes (null-termination is not included!)
- Returns
- The size of the string.
- Return values
-
If | not valid return InvalidPos! |
Implements IString.
Definition at line 282 of file string_intf.h.
◆ Set()
tResult Set |
( |
const char * | strValue | ) |
|
|
inlineoverridevirtual |
Sets the given null-terminated string to the implementation.
- Parameters
-
strValue | [in] The null-terminated string to set. |
- Return values
-
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.
◆ m_nSize
std::optional<size_t> m_nSize |
|
mutableprivate |
◆ m_strValue