MCPcopy Create free account
hub / github.com/apache/trafficserver / marshal_length

Method marshal_length

src/proxy/hdrs/HTTP.cc:2103–2121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2101}
2102
2103int
2104HTTPInfo::marshal_length()
2105{
2106 int len = HTTP_ALT_MARSHAL_SIZE;
2107
2108 if (m_alt->m_request_hdr.valid()) {
2109 len += m_alt->m_request_hdr.m_heap->marshal_length();
2110 }
2111
2112 if (m_alt->m_response_hdr.valid()) {
2113 len += m_alt->m_response_hdr.m_heap->marshal_length();
2114 }
2115
2116 if (m_alt->m_frag_offset_count > HTTPCacheAlt::N_INTEGRAL_FRAG_OFFSETS) {
2117 len += sizeof(FragOffset) * m_alt->m_frag_offset_count;
2118 }
2119
2120 return len;
2121}
2122
2123int
2124HTTPInfo::marshal(char *buf, int len)

Callers 1

TSCacheHttpInfoVectorFunction · 0.45

Calls 1

validMethod · 0.45

Tested by

no test coverage detected