Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion include/seastar/net/packet.hh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ public:
return *this;
}

unsigned len() const noexcept { return _impl->_len; }
unsigned len() const noexcept {
SEASTAR_ASSERT(_impl);
return _impl->_len;
}
unsigned memory() const noexcept { return len() + sizeof(packet::impl); }

fragment frag(unsigned idx) const noexcept { return _impl->_frags[idx]; }
Expand Down