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

Function str_concat

plugins/origin_server_auth/origin_server_auth.cc:847–857  ·  view source on GitHub ↗

dst points to starting offset of dst buffer dst_len remaining space in buffer

Source from the content-addressed store, hash-verified

845// dst points to starting offset of dst buffer
846// dst_len remaining space in buffer
847static size_t
848str_concat(char *dst, size_t dst_len, const char *src, size_t src_len)
849{
850 size_t to_copy = std::min(dst_len, src_len);
851
852 if (to_copy > 0) {
853 TSstrlcat(dst, src, to_copy);
854 }
855
856 return to_copy;
857}
858
859TSHttpStatus
860S3Request::authorize(S3Config *s3)

Callers 1

authorizeAwsV2Method · 0.85

Calls 1

TSstrlcatFunction · 0.85

Tested by

no test coverage detected