X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9445eb48b924175648ade8a622bea9d5f698cdb..d928f01967cec20e112cc9dde2162b147d8f1433:/interface/wx/buffer.h diff --git a/interface/wx/buffer.h b/interface/wx/buffer.h index f9ce4835ef..4ef51bac3b 100644 --- a/interface/wx/buffer.h +++ b/interface/wx/buffer.h @@ -309,6 +309,17 @@ public: */ void AppendData(const void *data, size_t len); + /** + Clear the buffer contents. + + The buffer won't contain any data after this method is called. + + @see IsEmpty() + + @since 2.9.4 + */ + void Clear(); + /** Ensure that the buffer is big enough and return a pointer to the start of the empty space in the buffer. This pointer can be used to directly @@ -343,6 +354,15 @@ public: */ void* GetWriteBuf(size_t sizeNeeded); + /** + Returns true if the buffer contains no data. + + @see Clear() + + @since 2.9.4 + */ + bool IsEmpty() const; + /** Ensures the buffer has at least @a size bytes available. */