X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59c0db6a93637e7eec5a72ca66e9506e19adf305..e18e78a7cc106a75e5228c51edd982436682633d:/docs/doxygen/overviews/bufferclasses.h diff --git a/docs/doxygen/overviews/bufferclasses.h b/docs/doxygen/overviews/bufferclasses.h index 3a71278864..70c0d8e681 100644 --- a/docs/doxygen/overviews/bufferclasses.h +++ b/docs/doxygen/overviews/bufferclasses.h @@ -6,42 +6,44 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -/*! +/** - @page overview_bufferclasses Buffer classes overview +@page overview_bufferclasses Buffer Classes - wxWidgets uses two classes of classes for dealing with buffers in memory. +wxWidgets uses two classes of classes for dealing with buffers in memory. - The first is one for dealing with character buffers, namely wxCharBuffer - for char pointer or multi-byte c strings and wxWCharBuffer for wchar_t pointer - or wide character c strings. +The first is one for dealing with character buffers, namely wxCharBuffer for +char pointer or multi-byte c strings and wxWCharBuffer for wchar_t pointer or +wide character c strings. - Secondly, wxWidgets uses, although only rarely currently, wxMemoryBuffer - for dealing with raw buffers in memory. +Secondly, wxWidgets uses, although only rarely currently, wxMemoryBuffer for +dealing with raw buffers in memory. - @li @ref overview_bufferclasses_wxcb +@li @ref overview_bufferclasses_xcb -
+
- @section overview_bufferclasses_wxcb wxXCharBuffer Overview +@section overview_bufferclasses_xcb wxXCharBuffer - @b General Usage - As mentioned, wxCharBuffer and its wide character variant wxWCharBuffer deal - with c strings in memory. They have two constructors, one in which you pass - the c string you want them to have a copy of, and another where you specify - the size of the buffer in memory in characters you want. +@subsection overview_bufferclasses_xcb_general General Usage - wxCharBuffer and its variant only contain the c string as a member, so they - can be used safely to c functions with variable arguments such as printf. - They also contain standard assignment, character access operators and a copy constructor. +As mentioned, wxCharBuffer and its wide character variant wxWCharBuffer deal +with c strings in memory. They have two constructors, one in which you pass +the c string you want them to have a copy of, and another where you specify the +size of the buffer in memory in characters you want. - @b Destruction - It should be noted that on destruction wxCharBuffer and its wide character - variant delete the c string that hold onto. If you want to get the pointer - to the buffer and don't want wxCharBuffer to delete it on destruction, - use the member function release to do so. +wxCharBuffer and its variant only contain the c string as a member, so they can +be used safely to c functions with variable arguments such as printf. They also +contain standard assignment, character access operators and a copy constructor. + +@subsection overview_bufferclasses_xcb_destruct Destruction + +It should be noted that on destruction wxCharBuffer and its wide character +variant delete the c string that hold onto. If you want to get the pointer to +the buffer and don't want wxCharBuffer to delete it on destruction, use the +member function release to do so. */