File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
#include " event_pb.h"
2
2
3
3
namespace NActors {
4
+ TString EventPBBaseToString (const TString& header, const TString& dbgStr) {
5
+ TString res;
6
+ res.reserve (header.size () + 1 + dbgStr.size ());
7
+ res.append (header);
8
+ res.append (' ' );
9
+ res.append (dbgStr);
10
+ return res;
11
+ }
12
+
4
13
bool TRopeStream::Next (const void ** data, int * size) {
5
14
*data = Iter.ContiguousData ();
6
15
*size = Iter.ContiguousSize ();
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ namespace NActorsProto {
19
19
} // NActorsProto
20
20
21
21
namespace NActors {
22
+ TString EventPBBaseToString (const TString& header, const TString& dbgStr);
22
23
23
24
class TRopeStream : public NProtoBuf ::io::ZeroCopyInputStream {
24
25
TRope::TConstIterator Iter;
@@ -183,9 +184,7 @@ namespace NActors {
183
184
}
184
185
185
186
TString ToString () const override {
186
- TStringStream ss;
187
- ss << ToStringHeader () << " " << Record.ShortDebugString ();
188
- return ss.Str ();
187
+ return EventPBBaseToString (ToStringHeader (), Record.ShortDebugString ());
189
188
}
190
189
191
190
bool IsSerializable () const override {
You can’t perform that action at this time.
0 commit comments