diff options
Diffstat (limited to 'util/builder.h')
-rw-r--r-- | util/builder.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/util/builder.h b/util/builder.h index 5046b72..f9d3514 100644 --- a/util/builder.h +++ b/util/builder.h @@ -90,7 +90,7 @@ namespace mongo { append<double>(j); } - void append(const void *src, int len) { + void append(const void *src, size_t len) { memcpy(grow(len), src, len); } @@ -102,6 +102,10 @@ namespace mongo { append( (void *)str.c_str(), str.length() + 1 ); } + void append( int val , int padding ){ + + } + int len() const { return l; } @@ -197,7 +201,7 @@ namespace mongo { } string str(){ - return string(_buf.data,0,_buf.l); + return string(_buf.data, _buf.l); } private: |