Added ZString constructor for assignment on definition.
This commit is contained in:
1 parent
ce71aefaac
commit
37b9a5e316
6 files changed
+10
No files matched your search
@@ -37,6 +37,12 @@ namespace coreutils {
|
||||
memcpy(this->data, data, length);
|
||||
cursor = this->data;
|
||||
}
|
||||
|
||||
MString::MString(ZString zstring) {
|
||||
setSize(zstring.getLength());
|
||||
memcpy(data, zstring.getData(), zstring.getLength());
|
||||
cursor = data;
|
||||
}
|
||||
|
||||
MString::MString(const MString &mstring) {
|
||||
setSize(mstring.length);
|
||||
|
||||
Reference in new issue
Block a user