Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterface by
Diff: api/DataWrapper.h
- Revision:
- 25:1fc958ac14d1
- Parent:
- 24:a6915e19814e
- Child:
- 26:b06a19916f05
--- a/api/DataWrapper.h Fri Mar 20 04:08:59 2015 +0000 +++ b/api/DataWrapper.h Fri Mar 20 05:32:16 2015 +0000 @@ -34,6 +34,11 @@ DataWrapper(uint8_t *data,int data_length); /** + Default constructor (alloc) + */ + DataWrapper(int data_length); + + /** Default copy constructor */ DataWrapper(const DataWrapper &data); @@ -69,10 +74,13 @@ Reset the wrapper */ void reset(); - + protected: + uint8_t *m_data; + private: - uint8_t *m_data; + bool m_alloced; int m_data_length; + int m_data_length_max; }; #endif // __DATA_WRAPPER_H__ \ No newline at end of file