Developed MString.

This commit is contained in:
Brad Arant committed 2022-03-15 20:07:43 -07:00
1 parent 91286649cc
commit 59228ad356
4 files changed
+195 -13

No files matched your search

+60
View File
@@ -0,0 +1,60 @@
#ifndef __MString_h__
#define __MString_h__
#include "ZString.h"
namespace coreutils {
///
/// Use the MString object when you need a permanent backing store on the heap
/// for a ZString style functionality.
///
class MString : public ZString {
public:
///
///
///
MString();
///
///
///
MString(const char *data);
///
/// Consructor providing the initial setup of the ZString object.
///
MString(char *data, size_t length);
MString(const char *data, size_t length);
///
/// Consructor providing a copy of a ZString.
///
MString(const MString &zstring);
///
/// Consructor from a string.
///
MString(std::string string);
~MString();
int write(char ch);
private:
int bufferSize = 0;
};
}
#endif