DCL 4.0
Loading...
Searching...
No Matches
StringWriter.cpp File Reference
#include <string.h>
#include <dcl/StringWriter.h>
#include <dcl/size_t.h>

Go to the source code of this file.

Functions

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO (StringWriter, Writer) String StringWriter

Function Documentation

◆ IMPLEMENT_CLASSINFO()

__DCL_BEGIN_NAMESPACE IMPLEMENT_CLASSINFO ( StringWriter ,
Writer  )

Definition at line 12 of file StringWriter.cpp.

15{
16 String r;
17 if (__buf != NULL) {
18 // STRING::assign 에서 __buf의 참조카운터가 증가한다.
19 r.assign(__buf);
20 }
21 return r;
22}
23
24StringWriter::StringWriter(size_t _capacity)
25{
26 __DCL_ASSERT_PARAM(_capacity > 0);
27
28 __buf = NULL;
29 __capacity = _capacity;
30}
#define NULL
Definition Config.h:340
#define __DCL_ASSERT_PARAM(expr)
Definition Object.h:384
ByteString r
CharBuffer * __buf
size_t __capacity