Add ODesc::Size() that returns size_t, deprecate ODesc::Len()

This commit is contained in:
Tim Wojtulewicz 2025-07-24 18:29:08 -07:00
parent 6e2a18ce4f
commit 7a5209855f
12 changed files with 47 additions and 45 deletions

View file

@ -88,7 +88,7 @@ public:
DescCatArg(TypePtr _t) : CatArg(), t(std::move(_t)) { d.SetStyle(RAW_STYLE); }
void RenderInto(const ZVal& zv, char*& res) override {
auto n = d.Len();
auto n = d.Size();
memcpy(res, d.Bytes(), n);
res += n;
d.Clear();
@ -97,7 +97,7 @@ public:
protected:
size_t ComputeMaxSize(const ZVal& zv) override {
zv.ToVal(t)->Describe(&d);
return d.Len();
return d.Size();
}
ODesc d;