X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcodec_utils%2Fcommon%2Fodu_common_codec.c;h=98f00230d21d22dbfea0e2fa7d4a3db82927b887;hb=1b3eb2476cbf89b7583b5e264fef931038e3f695;hp=5f52c253a35b8ca88b213e92347c8352de289610;hpb=bb8df345963bb5ef2e035ead7731c1171e4cbbe0;p=o-du%2Fl2.git diff --git a/src/codec_utils/common/odu_common_codec.c b/src/codec_utils/common/odu_common_codec.c index 5f52c253a..98f00230d 100644 --- a/src/codec_utils/common/odu_common_codec.c +++ b/src/codec_utils/common/odu_common_codec.c @@ -1,5 +1,29 @@ #include "odu_common_codec.h" +/******************************************************************* + * + * @brief Writes the encoded chunks into a buffer + * + * @details + * + * Function : PrepFinalEncBuf + * + * Functionality:Fills the encoded buffer + * + * @params[in] void *buffer,initial encoded data + * @params[in] size_t size,size of buffer + * @params[in] void *encodedBuf,final buffer + * @return ROK - success + * RFAILED - failure + * + * ****************************************************************/ +int PrepFinalEncBuf(const void *buffer, size_t size, void *encodedBuf) +{ + memcpy(encodedBuf + encBufSize, buffer, size); + encBufSize += size; + return 0; +} /* PrepFinalEncBuf */ + /******************************************************************* * * @brief Builds PLMN ID