summaryrefslogtreecommitdiff
path: root/cpp/pack.hpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
committerfrsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731>2009-02-15 09:10:00 +0000
commitadba617f45f89cacbd23667744d0cc17668ecdda (patch)
tree9f4f1de828838a7537d06b3e6c60d325aecf4484 /cpp/pack.hpp
parent8f3444c08141520a0977adce643ce0eb7f0324cd (diff)
downloadmsgpack-python-adba617f45f89cacbd23667744d0cc17668ecdda.tar.gz
c, c++ binding: catch up with ruby binding
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@89 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
Diffstat (limited to 'cpp/pack.hpp')
-rw-r--r--cpp/pack.hpp42
1 files changed, 23 insertions, 19 deletions
diff --git a/cpp/pack.hpp b/cpp/pack.hpp
index 4fda4ff..aee4b87 100644
--- a/cpp/pack.hpp
+++ b/cpp/pack.hpp
@@ -30,29 +30,33 @@ public:
packer(Stream& s);
public:
- void pack_int(int d) { pack_int_impl(m_stream, d); }
- void pack_unsigned_int(unsigned int d) { pack_unsigned_int_impl(m_stream, d); }
- void pack_uint8(uint8_t d) { pack_uint8_impl(m_stream, d); }
- void pack_uint16(uint16_t d) { pack_uint16_impl(m_stream, d); }
- void pack_uint32(uint32_t d) { pack_uint32_impl(m_stream, d); }
- void pack_uint64(uint64_t d) { pack_uint64_impl(m_stream, d); }
- void pack_int8(uint8_t d) { pack_int8_impl(m_stream, d); }
- void pack_int16(uint16_t d) { pack_int16_impl(m_stream, d); }
- void pack_int32(uint32_t d) { pack_int32_impl(m_stream, d); }
- void pack_int64(uint64_t d) { pack_int64_impl(m_stream, d); }
- void pack_float(float d) { pack_float_impl(m_stream, d); }
- void pack_double(double d) { pack_double_impl(m_stream, d); }
- void pack_nil() { pack_nil_impl(m_stream); }
- void pack_true() { pack_true_impl(m_stream); }
- void pack_false() { pack_false_impl(m_stream); }
- void pack_array(unsigned int n) { pack_array_impl(m_stream, n); }
- void pack_map(unsigned int n) { pack_map_impl(m_stream, n); }
- void pack_raw(size_t l) { pack_raw_impl(m_stream, l); }
- void pack_raw_body(const char* b, size_t l) { pack_raw_body_impl(m_stream, b, l); }
+ void pack_int(int d) { pack_int_impl(m_stream, d); }
+ void pack_long(long d) { pack_long_impl(m_stream, d); }
+ void pack_unsigned_int(unsigned int d) { pack_unsigned_int_impl(m_stream, d); }
+ void pack_unsigned_long(unsigned long d) { pack_unsigned_long_impl(m_stream, d); }
+ void pack_uint8(uint8_t d) { pack_uint8_impl(m_stream, d); }
+ void pack_uint16(uint16_t d) { pack_uint16_impl(m_stream, d); }
+ void pack_uint32(uint32_t d) { pack_uint32_impl(m_stream, d); }
+ void pack_uint64(uint64_t d) { pack_uint64_impl(m_stream, d); }
+ void pack_int8(uint8_t d) { pack_int8_impl(m_stream, d); }
+ void pack_int16(uint16_t d) { pack_int16_impl(m_stream, d); }
+ void pack_int32(uint32_t d) { pack_int32_impl(m_stream, d); }
+ void pack_int64(uint64_t d) { pack_int64_impl(m_stream, d); }
+ void pack_float(float d) { pack_float_impl(m_stream, d); }
+ void pack_double(double d) { pack_double_impl(m_stream, d); }
+ void pack_nil() { pack_nil_impl(m_stream); }
+ void pack_true() { pack_true_impl(m_stream); }
+ void pack_false() { pack_false_impl(m_stream); }
+ void pack_array(unsigned int n) { pack_array_impl(m_stream, n); }
+ void pack_map(unsigned int n) { pack_map_impl(m_stream, n); }
+ void pack_raw(size_t l) { pack_raw_impl(m_stream, l); }
+ void pack_raw_body(const char* b, size_t l) { pack_raw_body_impl(m_stream, b, l); }
private:
static void pack_int_impl(Stream& x, int d);
+ static void pack_long_impl(Stream& x, long d);
static void pack_unsigned_int_impl(Stream& x, unsigned int d);
+ static void pack_unsigned_long_impl(Stream& x, unsigned long d);
static void pack_uint8_impl(Stream& x, uint8_t d);
static void pack_uint16_impl(Stream& x, uint16_t d);
static void pack_uint32_impl(Stream& x, uint32_t d);