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

Function TSCacheHttpInfoVector

src/api/InkAPI.cc:3163–3179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3161}
3162
3163int
3164TSCacheHttpInfoVector(TSCacheHttpInfo infop, void *data, int length)
3165{
3166 CacheHTTPInfo *info = reinterpret_cast<CacheHTTPInfo *>(infop);
3167 CacheHTTPInfoVector vector;
3168
3169 vector.insert(info);
3170
3171 int size = vector.marshal_length();
3172
3173 if (size > length) {
3174 // error
3175 return 0;
3176 }
3177
3178 return vector.marshal(static_cast<char *>(data), length);
3179}
3180
3181void
3182TSCacheHttpInfoDestroy(TSCacheHttpInfo infop)

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
marshal_lengthMethod · 0.45
marshalMethod · 0.45

Tested by

no test coverage detected