| 56 | Message::~Message() = default; |
| 57 | |
| 58 | BytesView Message::encode(bool includeEmptyFields) { |
| 59 | auto length = encodedByteSize(includeEmptyFields); |
| 60 | auto byteBuffer = makeShared<ByteBuffer>(); |
| 61 | byteBuffer->resize(length); |
| 62 | |
| 63 | encode(includeEmptyFields, byteBuffer->begin(), byteBuffer->end()); |
| 64 | |
| 65 | return byteBuffer->toBytesView(); |
| 66 | } |
| 67 | |
| 68 | Byte* Message::encode(bool includeEmptyFields, Byte* bufferStart, Byte* bufferEnd) const { |
| 69 | _fieldMap.forEachSorted([&](const FieldMap::Entry& entry) { |
nothing calls this directly
no test coverage detected