Exemple #1
0
 inline std::size_t operator()(PacketHead & ph) const
 {
     return ph.size();
 }
Exemple #2
0
 virtual std::size_t buf_size(char * buf)
 {
     BOOST_ASSERT(buf);
     PacketHead * pPacketHead = reinterpret_cast<PacketHead *>(buf);
     return pPacketHead->size();
 }