Wednesday, May 04, 2005
3. What *aren't* descriptors?
Because their underlying memory allocation and cleanup must be managed by the programmer, as described in 4. Memory management and descriptors, they’re not like standard C++ strings, Java strings or the MFC CString.
And because they protect against buffer overrun and don’t rely on NULL terminators to determine the length of the string, they are not like C strings either. See 2. Why use descriptors? for why you should prefer to use descriptors rather than familiar, but clunky, C strings.
And because they protect against buffer overrun and don’t rely on NULL terminators to determine the length of the string, they are not like C strings either. See 2. Why use descriptors? for why you should prefer to use descriptors rather than familiar, but clunky, C strings.