mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 01:47:16 +01:00
Update Buffer.hpp
This commit is contained in:
parent
1e68f1b796
commit
ccfae607d7
@ -762,6 +762,22 @@ public:
|
|||||||
o.m_Cap = n;
|
o.m_Cap = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
* Retrieve the buffer as a string.
|
||||||
|
*/
|
||||||
|
String ToStr() const
|
||||||
|
{
|
||||||
|
return m_Ptr ? String(Get< String::value_type >(), Position()) : String();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------------------------------
|
||||||
|
* Retrieve the buffer as a string.
|
||||||
|
*/
|
||||||
|
String ToStr(SzType p) const
|
||||||
|
{
|
||||||
|
return m_Ptr ? String(Get< String::value_type >(), ClampMax(p, m_Cap)) : String();
|
||||||
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------
|
||||||
* Write a portion of a buffer to the internal buffer.
|
* Write a portion of a buffer to the internal buffer.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user