| 2101 | } |
| 2102 | |
| 2103 | int |
| 2104 | HTTPInfo::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 | |
| 2123 | int |
| 2124 | HTTPInfo::marshal(char *buf, int len) |
no test coverage detected