[3.0] Modify doxygen example of Encode/DecodeBase64StringN
authordahyeong.kim <dahyeong.kim@samsung.com>
Fri, 9 Aug 2013 06:59:30 +0000 (15:59 +0900)
committerdahyeong.kim <dahyeong.kim@samsung.com>
Mon, 19 Aug 2013 06:24:53 +0000 (15:24 +0900)
Change-Id: I6fe11555fc6ef0e6a2effe3cc95cab902f6b556d
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
inc/FBaseUtilStringUtil.h

index f6ff573..128cdd3 100644 (file)
@@ -293,16 +293,15 @@ public:
         *
         *      String encodedStr;
         *      ByteBuffer buffer;
-        *      buffer.Construct(size + 1);
+        *      buffer.Construct(size);
         *
-        *      buffer.SetArray((byte*)pChar, 0, size);
-        *      buffer.SetByte('\0');
+        *      buffer.SetArray(reinterpret_cast< const byte* >(pChar), 0, size);
         *      buffer.Flip();
         *
         *      StringUtil::EncodeToBase64String(buffer, encodedStr);
         *
         *      // Decodes a String consisting of base 64 digits to a ByteBuffer
-        *      ByteBuffer* pDecodedBuffer = StringUtil::DecodeBase64StringN(encodedStr);
+        *      std::unique_ptr< ByteBuffer > pDecodedBuffer(StringUtil::DecodeBase64StringN(encodedStr));
         *
         * @endcode
         */
@@ -330,10 +329,9 @@ public:
         *
         *      String encodedStr;
         *      ByteBuffer buffer;
-        *      buffer.Construct(size + 1);
+        *      buffer.Construct(size);
         *
-        *      buffer.SetArray((byte*)pChar, 0, size);
-        *      buffer.SetByte('\0');
+        *      buffer.SetArray(reinterpret_cast< const byte* >(pChar), 0, size);
         *      buffer.Flip();
         *
         *      // Encodes a ByteBuffer into a String consisting of base 64 characters