mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add ODesc::Size() that returns size_t, deprecate ODesc::Len()
This commit is contained in:
parent
6e2a18ce4f
commit
7a5209855f
12 changed files with 47 additions and 45 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue