Attach copy policy to string adapters

This commit is contained in:
Benoit Blanchon
2022-10-26 10:37:18 +02:00
parent 61c6f8ba59
commit b27990f780
12 changed files with 113 additions and 101 deletions

View File

@@ -61,6 +61,10 @@ class FlashString {
::memcpy_P(p, s._str, n);
}
CopyStringStoragePolicy storagePolicy() {
return CopyStringStoragePolicy();
}
private:
const char* _str;
size_t _size;