Lines Matching refs:LegacyHeader
34 IsAlignedForChannelMessage(sizeof(Channel::Message::LegacyHeader)),
40 static_assert(sizeof(Channel::Message::LegacyHeader) == 8,
43 static_assert(offsetof(Channel::Message::LegacyHeader, num_bytes) ==
46 static_assert(offsetof(Channel::Message::LegacyHeader, message_type) ==
113 is_legacy_message ? sizeof(LegacyHeader) : sizeof(Header); in Message()
169 if (data_num_bytes < sizeof(LegacyHeader)) in Deserialize()
172 const LegacyHeader* legacy_header = in Deserialize()
173 reinterpret_cast<const LegacyHeader*>(data); in Deserialize()
188 payload_size = data_num_bytes - sizeof(LegacyHeader); in Deserialize()
189 payload = static_cast<const char*>(data) + sizeof(LegacyHeader); in Deserialize()
274 return capacity_ - sizeof(LegacyHeader); in capacity()
334 return legacy_header()->num_bytes - sizeof(LegacyHeader); in payload_size()
365 Channel::Message::LegacyHeader* Channel::Message::legacy_header() const { in legacy_header()
366 return reinterpret_cast<LegacyHeader*>(data_); in legacy_header()
625 while (read_buffer_->num_occupied_bytes() >= sizeof(Message::LegacyHeader)) { in OnReadComplete()
635 const Message::LegacyHeader* legacy_header = in OnReadComplete()
636 reinterpret_cast<const Message::LegacyHeader*>( in OnReadComplete()
640 if (legacy_header->num_bytes < sizeof(Message::LegacyHeader) || in OnReadComplete()
679 payload_size = legacy_header->num_bytes - sizeof(Message::LegacyHeader); in OnReadComplete()
681 ? const_cast<Message::LegacyHeader*>(&legacy_header[1]) in OnReadComplete()