rroonga 6.0.5-x86-mingw32 → 6.0.7-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (993) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +15 -0
  3. data/ext/groonga/rb-grn-column.c +23 -17
  4. data/ext/groonga/rb-grn-context.c +24 -22
  5. data/ext/groonga/rb-grn-exception.c +2 -256
  6. data/ext/groonga/rb-grn-index-column.c +21 -9
  7. data/ext/groonga/rb-grn-object.c +98 -62
  8. data/ext/groonga/rb-grn-table-sort-keys.c +1 -1
  9. data/ext/groonga/rb-grn-table.c +2 -2
  10. data/ext/groonga/rb-grn-variable-size-column.c +13 -7
  11. data/ext/groonga/rb-grn.h +1 -2
  12. data/ext/groonga/rb-groonga.c +3 -2
  13. data/lib/2.1/groonga.so +0 -0
  14. data/lib/2.2/groonga.so +0 -0
  15. data/lib/2.3/groonga.so +0 -0
  16. data/rroonga-build.rb +3 -3
  17. data/test/test-fix-size-column.rb +1 -1
  18. data/test/test-schema.rb +1 -1
  19. data/test/test-variable-size-column.rb +1 -1
  20. data/vendor/local/bin/grndb.exe +0 -0
  21. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  22. data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
  23. data/vendor/local/bin/groonga.exe +0 -0
  24. data/vendor/local/bin/libgroonga-0.dll +0 -0
  25. data/vendor/local/bin/libmecab-2.dll +0 -0
  26. data/vendor/local/bin/{libmsgpack-4.dll → libmsgpackc.dll} +0 -0
  27. data/vendor/local/bin/libonig-5.dll +0 -0
  28. data/vendor/local/bin/lz4.exe +0 -0
  29. data/vendor/local/bin/lz4c.exe +0 -0
  30. data/vendor/local/bin/lz4cat +0 -0
  31. data/vendor/local/bin/mecab.exe +0 -0
  32. data/vendor/local/bin/zlib1.dll +0 -0
  33. data/vendor/local/include/groonga/groonga.h +2 -0
  34. data/vendor/local/include/groonga/groonga/column.h +29 -0
  35. data/vendor/local/include/groonga/groonga/dump.h +1 -1
  36. data/vendor/local/include/groonga/groonga/error.h +29 -0
  37. data/vendor/local/include/groonga/groonga/groonga.h +6 -1
  38. data/vendor/local/include/msgpack/adaptor/adaptor_base.hpp +4 -70
  39. data/vendor/local/include/msgpack/adaptor/adaptor_base_decl.hpp +16 -0
  40. data/vendor/local/include/msgpack/adaptor/array_ref.hpp +4 -161
  41. data/vendor/local/include/msgpack/adaptor/array_ref_decl.hpp +16 -0
  42. data/vendor/local/include/msgpack/adaptor/bool.hpp +2 -53
  43. data/vendor/local/include/msgpack/adaptor/boost/fusion.hpp +1 -146
  44. data/vendor/local/include/msgpack/adaptor/boost/msgpack_variant.hpp +4 -416
  45. data/vendor/local/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp +16 -0
  46. data/vendor/local/include/msgpack/adaptor/boost/optional.hpp +2 -83
  47. data/vendor/local/include/msgpack/adaptor/boost/string_ref.hpp +2 -74
  48. data/vendor/local/include/msgpack/adaptor/carray.hpp +15 -0
  49. data/vendor/local/include/msgpack/adaptor/char_ptr.hpp +2 -144
  50. data/vendor/local/include/msgpack/adaptor/check_container_size.hpp +3 -53
  51. data/vendor/local/include/msgpack/adaptor/check_container_size_decl.hpp +16 -0
  52. data/vendor/local/include/msgpack/adaptor/cpp11/array.hpp +5 -127
  53. data/vendor/local/include/msgpack/adaptor/cpp11/array_char.hpp +5 -78
  54. data/vendor/local/include/msgpack/adaptor/cpp11/array_unsigned_char.hpp +5 -78
  55. data/vendor/local/include/msgpack/adaptor/cpp11/forward_list.hpp +5 -83
  56. data/vendor/local/include/msgpack/adaptor/cpp11/reference_wrapper.hpp +5 -57
  57. data/vendor/local/include/msgpack/adaptor/cpp11/shared_ptr.hpp +5 -71
  58. data/vendor/local/include/msgpack/adaptor/cpp11/tuple.hpp +5 -165
  59. data/vendor/local/include/msgpack/adaptor/cpp11/unique_ptr.hpp +5 -71
  60. data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map.hpp +5 -171
  61. data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set.hpp +5 -161
  62. data/vendor/local/include/msgpack/adaptor/define.hpp +3 -17
  63. data/vendor/local/include/msgpack/adaptor/define_decl.hpp +142 -0
  64. data/vendor/local/include/msgpack/adaptor/deque.hpp +3 -96
  65. data/vendor/local/include/msgpack/adaptor/ext.hpp +3 -223
  66. data/vendor/local/include/msgpack/adaptor/ext_decl.hpp +16 -0
  67. data/vendor/local/include/msgpack/adaptor/fixint.hpp +4 -285
  68. data/vendor/local/include/msgpack/adaptor/fixint_decl.hpp +16 -0
  69. data/vendor/local/include/msgpack/adaptor/float.hpp +2 -110
  70. data/vendor/local/include/msgpack/adaptor/int.hpp +4 -415
  71. data/vendor/local/include/msgpack/adaptor/int_decl.hpp +16 -0
  72. data/vendor/local/include/msgpack/adaptor/list.hpp +2 -93
  73. data/vendor/local/include/msgpack/adaptor/map.hpp +3 -291
  74. data/vendor/local/include/msgpack/adaptor/map_decl.hpp +16 -0
  75. data/vendor/local/include/msgpack/adaptor/msgpack_tuple.hpp +2 -6
  76. data/vendor/local/include/msgpack/adaptor/msgpack_tuple_decl.hpp +16 -0
  77. data/vendor/local/include/msgpack/adaptor/nil.hpp +3 -70
  78. data/vendor/local/include/msgpack/adaptor/nil_decl.hpp +16 -0
  79. data/vendor/local/include/msgpack/adaptor/pair.hpp +2 -70
  80. data/vendor/local/include/msgpack/adaptor/raw.hpp +3 -92
  81. data/vendor/local/include/msgpack/adaptor/raw_decl.hpp +16 -0
  82. data/vendor/local/include/msgpack/adaptor/set.hpp +2 -175
  83. data/vendor/local/include/msgpack/adaptor/size_equal_only.hpp +17 -0
  84. data/vendor/local/include/msgpack/adaptor/size_equal_only_decl.hpp +16 -0
  85. data/vendor/local/include/msgpack/adaptor/string.hpp +2 -73
  86. data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +2 -2
  87. data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +2 -2
  88. data/vendor/local/include/msgpack/adaptor/v4raw.hpp +3 -92
  89. data/vendor/local/include/msgpack/adaptor/v4raw_decl.hpp +16 -0
  90. data/vendor/local/include/msgpack/adaptor/vector.hpp +2 -108
  91. data/vendor/local/include/msgpack/adaptor/vector_bool.hpp +2 -75
  92. data/vendor/local/include/msgpack/adaptor/vector_char.hpp +2 -76
  93. data/vendor/local/include/msgpack/adaptor/vector_unsigned_char.hpp +2 -76
  94. data/vendor/local/include/msgpack/cpp_config.hpp +4 -111
  95. data/vendor/local/include/msgpack/cpp_config_decl.hpp +16 -0
  96. data/vendor/local/include/msgpack/fbuffer.h +1 -1
  97. data/vendor/local/include/msgpack/fbuffer.hpp +5 -48
  98. data/vendor/local/include/msgpack/fbuffer_decl.hpp +16 -0
  99. data/vendor/local/include/msgpack/gcc_atomic.hpp +33 -0
  100. data/vendor/local/include/msgpack/iterator.hpp +3 -23
  101. data/vendor/local/include/msgpack/iterator_decl.hpp +17 -0
  102. data/vendor/local/include/msgpack/meta.hpp +3 -36
  103. data/vendor/local/include/msgpack/meta_decl.hpp +17 -0
  104. data/vendor/local/include/msgpack/object.hpp +5 -799
  105. data/vendor/local/include/msgpack/object_decl.hpp +17 -0
  106. data/vendor/local/include/msgpack/object_fwd.hpp +4 -180
  107. data/vendor/local/include/msgpack/object_fwd_decl.hpp +17 -0
  108. data/vendor/local/include/msgpack/pack.hpp +4 -1077
  109. data/vendor/local/include/msgpack/pack_decl.hpp +16 -0
  110. data/vendor/local/include/msgpack/predef.h +6 -1
  111. data/vendor/local/include/msgpack/predef/architecture.h +3 -1
  112. data/vendor/local/include/msgpack/predef/architecture/alpha.h +3 -4
  113. data/vendor/local/include/msgpack/predef/architecture/arm.h +3 -4
  114. data/vendor/local/include/msgpack/predef/architecture/blackfin.h +3 -4
  115. data/vendor/local/include/msgpack/predef/architecture/convex.h +3 -5
  116. data/vendor/local/include/msgpack/predef/architecture/ia64.h +3 -3
  117. data/vendor/local/include/msgpack/predef/architecture/m68k.h +3 -4
  118. data/vendor/local/include/msgpack/predef/architecture/mips.h +3 -4
  119. data/vendor/local/include/msgpack/predef/architecture/parisc.h +3 -4
  120. data/vendor/local/include/msgpack/predef/architecture/ppc.h +3 -4
  121. data/vendor/local/include/msgpack/predef/architecture/pyramid.h +3 -4
  122. data/vendor/local/include/msgpack/predef/architecture/rs6k.h +4 -4
  123. data/vendor/local/include/msgpack/predef/architecture/sparc.h +3 -4
  124. data/vendor/local/include/msgpack/predef/architecture/superh.h +3 -4
  125. data/vendor/local/include/msgpack/predef/architecture/sys370.h +3 -4
  126. data/vendor/local/include/msgpack/predef/architecture/sys390.h +3 -4
  127. data/vendor/local/include/msgpack/predef/architecture/x86.h +6 -6
  128. data/vendor/local/include/msgpack/predef/architecture/x86/32.h +4 -4
  129. data/vendor/local/include/msgpack/predef/architecture/x86/64.h +4 -4
  130. data/vendor/local/include/msgpack/predef/architecture/z.h +3 -4
  131. data/vendor/local/include/msgpack/predef/compiler.h +3 -1
  132. data/vendor/local/include/msgpack/predef/compiler/borland.h +3 -4
  133. data/vendor/local/include/msgpack/predef/compiler/clang.h +3 -4
  134. data/vendor/local/include/msgpack/predef/compiler/comeau.h +4 -5
  135. data/vendor/local/include/msgpack/predef/compiler/compaq.h +3 -4
  136. data/vendor/local/include/msgpack/predef/compiler/diab.h +3 -4
  137. data/vendor/local/include/msgpack/predef/compiler/digitalmars.h +3 -4
  138. data/vendor/local/include/msgpack/predef/compiler/dignus.h +3 -4
  139. data/vendor/local/include/msgpack/predef/compiler/edg.h +3 -4
  140. data/vendor/local/include/msgpack/predef/compiler/ekopath.h +3 -4
  141. data/vendor/local/include/msgpack/predef/compiler/gcc.h +3 -4
  142. data/vendor/local/include/msgpack/predef/compiler/gcc_xml.h +3 -3
  143. data/vendor/local/include/msgpack/predef/compiler/greenhills.h +3 -4
  144. data/vendor/local/include/msgpack/predef/compiler/hp_acc.h +3 -4
  145. data/vendor/local/include/msgpack/predef/compiler/iar.h +3 -4
  146. data/vendor/local/include/msgpack/predef/compiler/ibm.h +3 -4
  147. data/vendor/local/include/msgpack/predef/compiler/intel.h +3 -4
  148. data/vendor/local/include/msgpack/predef/compiler/kai.h +3 -4
  149. data/vendor/local/include/msgpack/predef/compiler/llvm.h +3 -4
  150. data/vendor/local/include/msgpack/predef/compiler/metaware.h +3 -4
  151. data/vendor/local/include/msgpack/predef/compiler/metrowerks.h +3 -4
  152. data/vendor/local/include/msgpack/predef/compiler/microtec.h +3 -4
  153. data/vendor/local/include/msgpack/predef/compiler/mpw.h +3 -4
  154. data/vendor/local/include/msgpack/predef/compiler/palm.h +3 -4
  155. data/vendor/local/include/msgpack/predef/compiler/pgi.h +3 -4
  156. data/vendor/local/include/msgpack/predef/compiler/sgi_mipspro.h +3 -4
  157. data/vendor/local/include/msgpack/predef/compiler/sunpro.h +17 -8
  158. data/vendor/local/include/msgpack/predef/compiler/tendra.h +3 -4
  159. data/vendor/local/include/msgpack/predef/compiler/visualc.h +3 -4
  160. data/vendor/local/include/msgpack/predef/compiler/watcom.h +3 -4
  161. data/vendor/local/include/msgpack/predef/detail/_cassert.h +1 -1
  162. data/vendor/local/include/msgpack/predef/detail/_exception.h +1 -1
  163. data/vendor/local/include/msgpack/predef/detail/test_def.h +71 -0
  164. data/vendor/local/include/msgpack/predef/hardware.h +16 -0
  165. data/vendor/local/include/msgpack/predef/hardware/simd.h +119 -0
  166. data/vendor/local/include/msgpack/predef/hardware/simd/arm.h +57 -0
  167. data/vendor/local/include/msgpack/predef/hardware/simd/arm/versions.h +32 -0
  168. data/vendor/local/include/msgpack/predef/hardware/simd/ppc.h +69 -0
  169. data/vendor/local/include/msgpack/predef/hardware/simd/ppc/versions.h +51 -0
  170. data/vendor/local/include/msgpack/predef/hardware/simd/x86.h +123 -0
  171. data/vendor/local/include/msgpack/predef/hardware/simd/x86/versions.h +129 -0
  172. data/vendor/local/include/msgpack/predef/hardware/simd/x86_amd.h +87 -0
  173. data/vendor/local/include/msgpack/predef/hardware/simd/x86_amd/versions.h +51 -0
  174. data/vendor/local/include/msgpack/predef/language.h +3 -1
  175. data/vendor/local/include/msgpack/predef/language/objc.h +3 -4
  176. data/vendor/local/include/msgpack/predef/language/stdc.h +3 -4
  177. data/vendor/local/include/msgpack/predef/language/stdcpp.h +8 -11
  178. data/vendor/local/include/msgpack/predef/library.h +3 -1
  179. data/vendor/local/include/msgpack/predef/library/c.h +3 -1
  180. data/vendor/local/include/msgpack/predef/library/c/gnu.h +3 -4
  181. data/vendor/local/include/msgpack/predef/library/c/uc.h +3 -4
  182. data/vendor/local/include/msgpack/predef/library/c/vms.h +3 -4
  183. data/vendor/local/include/msgpack/predef/library/c/zos.h +3 -4
  184. data/vendor/local/include/msgpack/predef/library/std.h +3 -1
  185. data/vendor/local/include/msgpack/predef/library/std/cxx.h +3 -4
  186. data/vendor/local/include/msgpack/predef/library/std/dinkumware.h +3 -4
  187. data/vendor/local/include/msgpack/predef/library/std/libcomo.h +3 -4
  188. data/vendor/local/include/msgpack/predef/library/std/modena.h +3 -4
  189. data/vendor/local/include/msgpack/predef/library/std/msl.h +3 -4
  190. data/vendor/local/include/msgpack/predef/library/std/roguewave.h +3 -4
  191. data/vendor/local/include/msgpack/predef/library/std/sgi.h +3 -4
  192. data/vendor/local/include/msgpack/predef/library/std/stdcpp3.h +3 -4
  193. data/vendor/local/include/msgpack/predef/library/std/stlport.h +3 -4
  194. data/vendor/local/include/msgpack/predef/library/std/vacpp.h +3 -4
  195. data/vendor/local/include/msgpack/predef/make.h +2 -2
  196. data/vendor/local/include/msgpack/predef/os.h +3 -1
  197. data/vendor/local/include/msgpack/predef/os/aix.h +3 -4
  198. data/vendor/local/include/msgpack/predef/os/amigaos.h +3 -4
  199. data/vendor/local/include/msgpack/predef/os/android.h +3 -4
  200. data/vendor/local/include/msgpack/predef/os/beos.h +3 -4
  201. data/vendor/local/include/msgpack/predef/os/bsd.h +11 -3
  202. data/vendor/local/include/msgpack/predef/os/bsd/bsdi.h +3 -3
  203. data/vendor/local/include/msgpack/predef/os/bsd/dragonfly.h +3 -3
  204. data/vendor/local/include/msgpack/predef/os/bsd/free.h +3 -3
  205. data/vendor/local/include/msgpack/predef/os/bsd/net.h +3 -3
  206. data/vendor/local/include/msgpack/predef/os/bsd/open.h +3 -3
  207. data/vendor/local/include/msgpack/predef/os/cygwin.h +4 -5
  208. data/vendor/local/include/msgpack/predef/os/haiku.h +3 -4
  209. data/vendor/local/include/msgpack/predef/os/hpux.h +3 -4
  210. data/vendor/local/include/msgpack/predef/os/ios.h +3 -3
  211. data/vendor/local/include/msgpack/predef/os/irix.h +3 -4
  212. data/vendor/local/include/msgpack/predef/os/linux.h +3 -4
  213. data/vendor/local/include/msgpack/predef/os/macos.h +3 -4
  214. data/vendor/local/include/msgpack/predef/os/os400.h +3 -4
  215. data/vendor/local/include/msgpack/predef/os/qnxnto.h +3 -4
  216. data/vendor/local/include/msgpack/predef/os/solaris.h +3 -4
  217. data/vendor/local/include/msgpack/predef/os/unix.h +3 -3
  218. data/vendor/local/include/msgpack/predef/os/vms.h +3 -4
  219. data/vendor/local/include/msgpack/predef/os/windows.h +3 -3
  220. data/vendor/local/include/msgpack/predef/other.h +3 -1
  221. data/vendor/local/include/msgpack/predef/other/endian.h +4 -5
  222. data/vendor/local/include/msgpack/predef/platform.h +3 -1
  223. data/vendor/local/include/msgpack/predef/platform/mingw.h +3 -4
  224. data/vendor/local/include/msgpack/predef/platform/windows_desktop.h +4 -3
  225. data/vendor/local/include/msgpack/predef/platform/windows_phone.h +4 -3
  226. data/vendor/local/include/msgpack/predef/platform/windows_runtime.h +4 -3
  227. data/vendor/local/include/msgpack/predef/platform/windows_store.h +4 -3
  228. data/vendor/local/include/msgpack/predef/version.h +2 -2
  229. data/vendor/local/include/msgpack/predef/version_number.h +1 -2
  230. data/vendor/local/include/msgpack/preprocessor/arithmetic/dec.hpp +1 -0
  231. data/vendor/local/include/msgpack/preprocessor/config/config.hpp +5 -2
  232. data/vendor/local/include/msgpack/preprocessor/facilities/identity.hpp +4 -0
  233. data/vendor/local/include/msgpack/preprocessor/library.hpp +1 -0
  234. data/vendor/local/include/msgpack/preprocessor/repetition/for.hpp +19 -1
  235. data/vendor/local/include/msgpack/preprocessor/seq/detail/is_empty.hpp +49 -0
  236. data/vendor/local/include/msgpack/preprocessor/seq/for_each.hpp +57 -10
  237. data/vendor/local/include/msgpack/preprocessor/seq/for_each_i.hpp +58 -10
  238. data/vendor/local/include/msgpack/preprocessor/seq/replace.hpp +18 -2
  239. data/vendor/local/include/msgpack/preprocessor/seq/rest_n.hpp +18 -2
  240. data/vendor/local/include/msgpack/preprocessor/seq/size.hpp +1 -0
  241. data/vendor/local/include/msgpack/preprocessor/tuple/eat.hpp +10 -1
  242. data/vendor/local/include/msgpack/sbuffer.hpp +4 -139
  243. data/vendor/local/include/msgpack/sbuffer_decl.hpp +17 -0
  244. data/vendor/local/include/msgpack/sysdep.h +9 -5
  245. data/vendor/local/include/msgpack/type.hpp +2 -0
  246. data/vendor/local/include/msgpack/unpack.hpp +5 -1698
  247. data/vendor/local/include/msgpack/unpack_decl.hpp +16 -0
  248. data/vendor/local/include/msgpack/v1/adaptor/adaptor_base.hpp +116 -0
  249. data/vendor/local/include/msgpack/v1/adaptor/adaptor_base_decl.hpp +86 -0
  250. data/vendor/local/include/msgpack/v1/adaptor/array_ref.hpp +305 -0
  251. data/vendor/local/include/msgpack/v1/adaptor/array_ref_decl.hpp +55 -0
  252. data/vendor/local/include/msgpack/v1/adaptor/bool.hpp +66 -0
  253. data/vendor/local/include/msgpack/v1/adaptor/boost/fusion.hpp +160 -0
  254. data/vendor/local/include/msgpack/v1/adaptor/boost/msgpack_variant.hpp +441 -0
  255. data/vendor/local/include/msgpack/v1/adaptor/boost/msgpack_variant_decl.hpp +62 -0
  256. data/vendor/local/include/msgpack/v1/adaptor/boost/optional.hpp +96 -0
  257. data/vendor/local/include/msgpack/v1/adaptor/boost/string_ref.hpp +87 -0
  258. data/vendor/local/include/msgpack/v1/adaptor/carray.hpp +253 -0
  259. data/vendor/local/include/msgpack/v1/adaptor/char_ptr.hpp +92 -0
  260. data/vendor/local/include/msgpack/v1/adaptor/check_container_size.hpp +67 -0
  261. data/vendor/local/include/msgpack/v1/adaptor/check_container_size_decl.hpp +44 -0
  262. data/vendor/local/include/msgpack/v1/adaptor/cpp11/array.hpp +138 -0
  263. data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_char.hpp +90 -0
  264. data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_unsigned_char.hpp +90 -0
  265. data/vendor/local/include/msgpack/v1/adaptor/cpp11/forward_list.hpp +94 -0
  266. data/vendor/local/include/msgpack/v1/adaptor/cpp11/reference_wrapper.hpp +68 -0
  267. data/vendor/local/include/msgpack/v1/adaptor/cpp11/shared_ptr.hpp +82 -0
  268. data/vendor/local/include/msgpack/v1/adaptor/cpp11/tuple.hpp +175 -0
  269. data/vendor/local/include/msgpack/v1/adaptor/cpp11/unique_ptr.hpp +82 -0
  270. data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_map.hpp +182 -0
  271. data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_set.hpp +172 -0
  272. data/vendor/local/include/msgpack/v1/adaptor/define.hpp +21 -0
  273. data/vendor/local/include/msgpack/v1/adaptor/define_decl.hpp +23 -0
  274. data/vendor/local/include/msgpack/v1/adaptor/deque.hpp +108 -0
  275. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp03_define_array.hpp +6 -71
  276. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_array_decl.hpp +135 -0
  277. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp03_define_map.hpp +7 -61
  278. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_map_decl.hpp +135 -0
  279. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp03_msgpack_tuple.hpp +1095 -579
  280. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple_decl.hpp +317 -0
  281. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp11_define_array.hpp +5 -71
  282. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_array_decl.hpp +39 -0
  283. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp11_define_map.hpp +7 -62
  284. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_map_decl.hpp +37 -0
  285. data/vendor/local/include/msgpack/{adaptor → v1/adaptor}/detail/cpp11_msgpack_tuple.hpp +30 -85
  286. data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +120 -0
  287. data/vendor/local/include/msgpack/v1/adaptor/ext.hpp +236 -0
  288. data/vendor/local/include/msgpack/v1/adaptor/ext_decl.hpp +38 -0
  289. data/vendor/local/include/msgpack/v1/adaptor/fixint.hpp +283 -0
  290. data/vendor/local/include/msgpack/v1/adaptor/fixint_decl.hpp +46 -0
  291. data/vendor/local/include/msgpack/v1/adaptor/float.hpp +123 -0
  292. data/vendor/local/include/msgpack/v1/adaptor/int.hpp +426 -0
  293. data/vendor/local/include/msgpack/v1/adaptor/int_decl.hpp +49 -0
  294. data/vendor/local/include/msgpack/v1/adaptor/list.hpp +106 -0
  295. data/vendor/local/include/msgpack/v1/adaptor/map.hpp +314 -0
  296. data/vendor/local/include/msgpack/v1/adaptor/map_decl.hpp +36 -0
  297. data/vendor/local/include/msgpack/v1/adaptor/msgpack_tuple.hpp +21 -0
  298. data/vendor/local/include/msgpack/v1/adaptor/msgpack_tuple_decl.hpp +21 -0
  299. data/vendor/local/include/msgpack/v1/adaptor/nil.hpp +76 -0
  300. data/vendor/local/include/msgpack/v1/adaptor/nil_decl.hpp +44 -0
  301. data/vendor/local/include/msgpack/v1/adaptor/pair.hpp +83 -0
  302. data/vendor/local/include/msgpack/v1/adaptor/raw.hpp +106 -0
  303. data/vendor/local/include/msgpack/v1/adaptor/raw_decl.hpp +36 -0
  304. data/vendor/local/include/msgpack/v1/adaptor/set.hpp +188 -0
  305. data/vendor/local/include/msgpack/v1/adaptor/size_equal_only.hpp +118 -0
  306. data/vendor/local/include/msgpack/v1/adaptor/size_equal_only_decl.hpp +52 -0
  307. data/vendor/local/include/msgpack/v1/adaptor/string.hpp +87 -0
  308. data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_map.hpp +171 -0
  309. data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_set.hpp +165 -0
  310. data/vendor/local/include/msgpack/v1/adaptor/v4raw.hpp +105 -0
  311. data/vendor/local/include/msgpack/v1/adaptor/v4raw_decl.hpp +34 -0
  312. data/vendor/local/include/msgpack/v1/adaptor/vector.hpp +121 -0
  313. data/vendor/local/include/msgpack/v1/adaptor/vector_bool.hpp +90 -0
  314. data/vendor/local/include/msgpack/v1/adaptor/vector_char.hpp +114 -0
  315. data/vendor/local/include/msgpack/v1/adaptor/vector_unsigned_char.hpp +114 -0
  316. data/vendor/local/include/msgpack/v1/cpp_config.hpp +129 -0
  317. data/vendor/local/include/msgpack/v1/cpp_config_decl.hpp +131 -0
  318. data/vendor/local/include/msgpack/{detail → v1/detail}/cpp03_zone.hpp +10 -21
  319. data/vendor/local/include/msgpack/v1/detail/cpp03_zone_decl.hpp +46 -0
  320. data/vendor/local/include/msgpack/{detail → v1/detail}/cpp11_zone.hpp +10 -18
  321. data/vendor/local/include/msgpack/v1/detail/cpp11_zone_decl.hpp +47 -0
  322. data/vendor/local/include/msgpack/v1/fbuffer.hpp +60 -0
  323. data/vendor/local/include/msgpack/v1/fbuffer_decl.hpp +32 -0
  324. data/vendor/local/include/msgpack/v1/iterator.hpp +40 -0
  325. data/vendor/local/include/msgpack/v1/iterator_decl.hpp +40 -0
  326. data/vendor/local/include/msgpack/v1/meta.hpp +47 -0
  327. data/vendor/local/include/msgpack/v1/meta_decl.hpp +52 -0
  328. data/vendor/local/include/msgpack/v1/object.hpp +865 -0
  329. data/vendor/local/include/msgpack/v1/object_decl.hpp +112 -0
  330. data/vendor/local/include/msgpack/v1/object_fwd.hpp +252 -0
  331. data/vendor/local/include/msgpack/v1/object_fwd_decl.hpp +76 -0
  332. data/vendor/local/include/msgpack/v1/pack.hpp +1602 -0
  333. data/vendor/local/include/msgpack/v1/pack_decl.hpp +91 -0
  334. data/vendor/local/include/msgpack/v1/preprocessor.hpp +19 -0
  335. data/vendor/local/include/msgpack/v1/sbuffer.hpp +149 -0
  336. data/vendor/local/include/msgpack/v1/sbuffer_decl.hpp +33 -0
  337. data/vendor/local/include/msgpack/v1/unpack.hpp +1672 -0
  338. data/vendor/local/include/msgpack/v1/unpack_decl.hpp +461 -0
  339. data/vendor/local/include/msgpack/v1/version.hpp +36 -0
  340. data/vendor/local/include/msgpack/v1/versioning.hpp +69 -0
  341. data/vendor/local/include/msgpack/v1/vrefbuffer.hpp +292 -0
  342. data/vendor/local/include/msgpack/v1/vrefbuffer_decl.hpp +39 -0
  343. data/vendor/local/include/msgpack/v1/zbuffer.hpp +159 -0
  344. data/vendor/local/include/msgpack/v1/zbuffer_decl.hpp +37 -0
  345. data/vendor/local/include/msgpack/v1/zone.hpp +21 -0
  346. data/vendor/local/include/msgpack/v1/zone_decl.hpp +21 -0
  347. data/vendor/local/include/msgpack/v2/adaptor/adaptor_base.hpp +58 -0
  348. data/vendor/local/include/msgpack/v2/adaptor/adaptor_base_decl.hpp +52 -0
  349. data/vendor/local/include/msgpack/v2/adaptor/array_ref_decl.hpp +36 -0
  350. data/vendor/local/include/msgpack/v2/adaptor/boost/msgpack_variant_decl.hpp +42 -0
  351. data/vendor/local/include/msgpack/v2/adaptor/check_container_size_decl.hpp +39 -0
  352. data/vendor/local/include/msgpack/v2/adaptor/define_decl.hpp +23 -0
  353. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp03_define_array_decl.hpp +31 -0
  354. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp03_define_map_decl.hpp +31 -0
  355. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp03_msgpack_tuple_decl.hpp +43 -0
  356. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp11_define_array_decl.hpp +32 -0
  357. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp11_define_map_decl.hpp +31 -0
  358. data/vendor/local/include/msgpack/v2/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +59 -0
  359. data/vendor/local/include/msgpack/v2/adaptor/ext_decl.hpp +34 -0
  360. data/vendor/local/include/msgpack/v2/adaptor/fixint_decl.hpp +43 -0
  361. data/vendor/local/include/msgpack/v2/adaptor/int_decl.hpp +54 -0
  362. data/vendor/local/include/msgpack/v2/adaptor/map_decl.hpp +33 -0
  363. data/vendor/local/include/msgpack/v2/adaptor/msgpack_tuple_decl.hpp +21 -0
  364. data/vendor/local/include/msgpack/v2/adaptor/nil_decl.hpp +42 -0
  365. data/vendor/local/include/msgpack/v2/adaptor/raw_decl.hpp +33 -0
  366. data/vendor/local/include/msgpack/v2/adaptor/size_equal_only_decl.hpp +35 -0
  367. data/vendor/local/include/msgpack/v2/adaptor/v4raw_decl.hpp +34 -0
  368. data/vendor/local/include/msgpack/v2/cpp_config_decl.hpp +84 -0
  369. data/vendor/local/include/msgpack/v2/detail/cpp03_zone_decl.hpp +31 -0
  370. data/vendor/local/include/msgpack/v2/detail/cpp11_zone_decl.hpp +31 -0
  371. data/vendor/local/include/msgpack/v2/fbuffer_decl.hpp +32 -0
  372. data/vendor/local/include/msgpack/v2/iterator_decl.hpp +33 -0
  373. data/vendor/local/include/msgpack/v2/meta_decl.hpp +46 -0
  374. data/vendor/local/include/msgpack/v2/object.hpp +33 -0
  375. data/vendor/local/include/msgpack/v2/object_decl.hpp +49 -0
  376. data/vendor/local/include/msgpack/v2/object_fwd.hpp +109 -0
  377. data/vendor/local/include/msgpack/v2/object_fwd_decl.hpp +73 -0
  378. data/vendor/local/include/msgpack/v2/pack_decl.hpp +55 -0
  379. data/vendor/local/include/msgpack/v2/sbuffer_decl.hpp +33 -0
  380. data/vendor/local/include/msgpack/v2/unpack.hpp +1625 -0
  381. data/vendor/local/include/msgpack/v2/unpack_decl.hpp +348 -0
  382. data/vendor/local/include/msgpack/v2/vrefbuffer_decl.hpp +29 -0
  383. data/vendor/local/include/msgpack/v2/zbuffer_decl.hpp +29 -0
  384. data/vendor/local/include/msgpack/v2/zone_decl.hpp +21 -0
  385. data/vendor/local/include/msgpack/version_master.h +2 -2
  386. data/vendor/local/include/msgpack/versioning.hpp +3 -3
  387. data/vendor/local/include/msgpack/vrefbuffer.hpp +4 -279
  388. data/vendor/local/include/msgpack/vrefbuffer_decl.hpp +16 -0
  389. data/vendor/local/include/msgpack/zbuffer.hpp +3 -153
  390. data/vendor/local/include/msgpack/zbuffer_decl.hpp +16 -0
  391. data/vendor/local/include/msgpack/zone.hpp +3 -7
  392. data/vendor/local/include/msgpack/zone_decl.hpp +16 -0
  393. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  394. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  395. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  396. data/vendor/local/lib/groonga/plugins/functions/number.la +3 -3
  397. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  398. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  399. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  400. data/vendor/local/lib/groonga/plugins/functions/string.la +3 -3
  401. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  402. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  403. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  404. data/vendor/local/lib/groonga/plugins/functions/time.la +3 -3
  405. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  406. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  407. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  408. data/vendor/local/lib/groonga/plugins/functions/vector.la +3 -3
  409. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  410. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  411. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  412. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
  413. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  414. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  415. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  416. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
  417. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  418. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  419. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  420. data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
  421. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  422. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  423. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  424. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +3 -3
  425. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  426. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  427. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  428. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
  429. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
  430. data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters.rb +10 -0
  431. data/vendor/local/lib/libgroonga.a +0 -0
  432. data/vendor/local/lib/libgroonga.dll.a +0 -0
  433. data/vendor/local/lib/libgroonga.la +3 -3
  434. data/vendor/local/lib/liblz4.a +0 -0
  435. data/vendor/local/lib/liblz4.dll +0 -0
  436. data/vendor/local/lib/liblz4.dll.1 +0 -0
  437. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  438. data/vendor/local/lib/libmecab.a +0 -0
  439. data/vendor/local/lib/libmecab.dll.a +0 -0
  440. data/vendor/local/lib/libmsgpackc.a +0 -0
  441. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  442. data/vendor/local/lib/libonig.a +0 -0
  443. data/vendor/local/lib/libonig.dll.a +0 -0
  444. data/vendor/local/lib/libonig.la +2 -2
  445. data/vendor/local/lib/libz.a +0 -0
  446. data/vendor/local/lib/libz.dll.a +0 -0
  447. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  448. data/vendor/local/lib/pkgconfig/msgpack.pc +2 -2
  449. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  450. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  451. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  452. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  453. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  454. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  455. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  456. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +0 -1
  457. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  458. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  459. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  460. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  461. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  462. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  463. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
  464. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  465. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +82 -1244
  466. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +3 -0
  467. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +3 -0
  468. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +3 -0
  469. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +3 -0
  470. data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +3 -0
  471. data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +1250 -0
  472. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_list.txt +393 -0
  473. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_substring.txt +27 -0
  474. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_slice.txt +27 -0
  475. data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +1 -1
  476. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +0 -4
  477. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +25 -1
  478. data/vendor/local/share/doc/groonga/en/html/characteristic.html +7 -7
  479. data/vendor/local/share/doc/groonga/en/html/client.html +7 -7
  480. data/vendor/local/share/doc/groonga/en/html/community.html +7 -7
  481. data/vendor/local/share/doc/groonga/en/html/contribution.html +7 -7
  482. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +7 -7
  483. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +7 -7
  484. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +7 -7
  485. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +7 -7
  486. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +7 -7
  487. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  488. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +7 -7
  489. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  490. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +7 -8
  491. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +7 -7
  492. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  493. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
  494. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  495. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  496. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +7 -7
  497. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
  498. data/vendor/local/share/doc/groonga/en/html/development.html +7 -7
  499. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +7 -7
  500. data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
  501. data/vendor/local/share/doc/groonga/en/html/index.html +44 -41
  502. data/vendor/local/share/doc/groonga/en/html/install.html +7 -7
  503. data/vendor/local/share/doc/groonga/en/html/install/centos.html +10 -10
  504. data/vendor/local/share/doc/groonga/en/html/install/debian.html +10 -10
  505. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +10 -10
  506. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +10 -10
  507. data/vendor/local/share/doc/groonga/en/html/install/others.html +10 -10
  508. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +10 -10
  509. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +10 -11
  510. data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
  511. data/vendor/local/share/doc/groonga/en/html/limitations.html +7 -7
  512. data/vendor/local/share/doc/groonga/en/html/news.html +257 -1703
  513. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
  514. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
  515. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
  516. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +54 -48
  517. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +18 -12
  518. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +65 -59
  519. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +64 -58
  520. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +61 -55
  521. data/vendor/local/share/doc/groonga/en/html/news/5.x.html +1426 -0
  522. data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
  523. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  524. data/vendor/local/share/doc/groonga/en/html/reference.html +44 -41
  525. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +7 -7
  526. data/vendor/local/share/doc/groonga/en/html/reference/api.html +7 -7
  527. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +7 -7
  528. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +7 -7
  529. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +7 -7
  530. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +7 -7
  531. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +7 -7
  532. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +7 -7
  533. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +7 -7
  534. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +7 -7
  535. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +7 -7
  536. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +7 -7
  537. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +7 -7
  538. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +7 -7
  539. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +7 -7
  540. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +7 -7
  541. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +7 -7
  542. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +7 -7
  543. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +7 -7
  544. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +7 -7
  545. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +7 -7
  546. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +7 -7
  547. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +7 -7
  548. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +7 -7
  549. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +7 -7
  550. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +7 -7
  551. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +7 -7
  552. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +7 -7
  553. data/vendor/local/share/doc/groonga/en/html/reference/column.html +7 -7
  554. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +7 -7
  555. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +7 -7
  556. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +7 -7
  557. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +7 -7
  558. data/vendor/local/share/doc/groonga/en/html/reference/command.html +33 -32
  559. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +7 -7
  560. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +7 -7
  561. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +7 -7
  562. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +7 -7
  563. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +7 -7
  564. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +7 -7
  565. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +7 -7
  566. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +7 -7
  567. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +7 -7
  568. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +7 -7
  569. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +7 -7
  570. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +7 -7
  571. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +7 -7
  572. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +7 -7
  573. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +7 -7
  574. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +7 -7
  575. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +7 -7
  576. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +7 -7
  577. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +7 -7
  578. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +7 -7
  579. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +7 -7
  580. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +7 -7
  581. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +7 -7
  582. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +7 -7
  583. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +7 -7
  584. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +7 -7
  585. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +7 -7
  586. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +7 -7
  587. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +7 -7
  588. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +7 -7
  589. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +7 -7
  590. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +7 -7
  591. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +7 -7
  592. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +7 -7
  593. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +7 -7
  594. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +7 -7
  595. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +7 -7
  596. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +7 -7
  597. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +7 -7
  598. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +12 -12
  599. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +991 -0
  600. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +36 -36
  601. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +27 -27
  602. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +27 -27
  603. data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +33 -33
  604. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +27 -27
  605. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +27 -27
  606. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +27 -27
  607. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +29 -29
  608. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +33 -33
  609. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +31 -31
  610. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +31 -31
  611. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +69 -69
  612. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +113 -113
  613. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +33 -33
  614. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +31 -31
  615. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +29 -29
  616. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +53 -53
  617. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +27 -27
  618. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +43 -43
  619. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +33 -33
  620. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +43 -43
  621. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +33 -33
  622. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +45 -45
  623. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +27 -27
  624. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +27 -27
  625. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +7 -7
  626. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -7
  627. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +7 -7
  628. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +7 -7
  629. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +7 -7
  630. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +7 -7
  631. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +7 -7
  632. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +7 -7
  633. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +7 -7
  634. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +7 -7
  635. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +7 -7
  636. data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -16
  637. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +7 -7
  638. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +7 -7
  639. data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +7 -7
  640. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +7 -7
  641. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +7 -7
  642. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +7 -7
  643. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +7 -7
  644. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +7 -7
  645. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +7 -7
  646. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +7 -7
  647. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +7 -7
  648. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +7 -7
  649. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +7 -7
  650. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +7 -7
  651. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +7 -7
  652. data/vendor/local/share/doc/groonga/en/html/reference/functions/record_number.html +7 -7
  653. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +12 -12
  654. data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +162 -0
  655. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +34 -34
  656. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +25 -25
  657. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +25 -25
  658. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +25 -25
  659. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +25 -25
  660. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +25 -25
  661. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +25 -25
  662. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +25 -25
  663. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +30 -30
  664. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +162 -0
  665. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +7 -7
  666. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +7 -7
  667. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +7 -7
  668. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +7 -7
  669. data/vendor/local/share/doc/groonga/en/html/reference/log.html +7 -7
  670. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +8 -8
  671. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +12 -12
  672. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +7 -7
  673. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +7 -7
  674. data/vendor/local/share/doc/groonga/en/html/reference/output.html +7 -7
  675. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +7 -7
  676. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +7 -7
  677. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +7 -7
  678. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +7 -7
  679. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +7 -7
  680. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +7 -7
  681. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +7 -7
  682. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +7 -7
  683. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +7 -7
  684. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +7 -7
  685. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +7 -7
  686. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +7 -7
  687. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +7 -7
  688. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +7 -7
  689. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +7 -7
  690. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +7 -7
  691. data/vendor/local/share/doc/groonga/en/html/reference/types.html +11 -11
  692. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  693. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  694. data/vendor/local/share/doc/groonga/en/html/server.html +7 -7
  695. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +7 -7
  696. data/vendor/local/share/doc/groonga/en/html/server/http.html +7 -7
  697. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +7 -7
  698. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +7 -7
  699. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +7 -7
  700. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +7 -7
  701. data/vendor/local/share/doc/groonga/en/html/server/package.html +7 -7
  702. data/vendor/local/share/doc/groonga/en/html/spec.html +7 -7
  703. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +7 -7
  704. data/vendor/local/share/doc/groonga/en/html/spec/search.html +7 -7
  705. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +7 -7
  706. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  707. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -7
  708. data/vendor/local/share/doc/groonga/en/html/tutorial.html +7 -7
  709. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +7 -7
  710. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +7 -7
  711. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +7 -7
  712. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +7 -7
  713. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +7 -7
  714. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +7 -7
  715. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +7 -7
  716. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +7 -7
  717. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +7 -7
  718. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +7 -7
  719. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +7 -7
  720. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  721. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +0 -1
  722. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  723. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  724. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  725. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  726. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  727. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  728. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
  729. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  730. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +82 -1244
  731. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +3 -0
  732. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +3 -0
  733. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +3 -0
  734. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +3 -0
  735. data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +3 -0
  736. data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +1250 -0
  737. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_list.txt +393 -0
  738. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_substring.txt +27 -0
  739. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_slice.txt +27 -0
  740. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +1 -1
  741. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +0 -4
  742. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +25 -1
  743. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +7 -7
  744. data/vendor/local/share/doc/groonga/ja/html/client.html +7 -7
  745. data/vendor/local/share/doc/groonga/ja/html/community.html +7 -7
  746. data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
  747. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +7 -7
  748. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +7 -7
  749. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +7 -7
  750. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +7 -7
  751. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +7 -7
  752. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  753. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +7 -7
  754. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  755. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +7 -8
  756. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +7 -7
  757. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  758. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
  759. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  760. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  761. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +7 -7
  762. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
  763. data/vendor/local/share/doc/groonga/ja/html/development.html +7 -7
  764. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +7 -7
  765. data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
  766. data/vendor/local/share/doc/groonga/ja/html/index.html +44 -41
  767. data/vendor/local/share/doc/groonga/ja/html/install.html +7 -7
  768. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +10 -10
  769. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +10 -10
  770. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +10 -10
  771. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +10 -10
  772. data/vendor/local/share/doc/groonga/ja/html/install/others.html +10 -10
  773. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +10 -10
  774. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +10 -11
  775. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
  776. data/vendor/local/share/doc/groonga/ja/html/limitations.html +7 -7
  777. data/vendor/local/share/doc/groonga/ja/html/news.html +248 -1638
  778. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
  779. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
  780. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
  781. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +54 -48
  782. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +18 -12
  783. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +65 -59
  784. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +64 -58
  785. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +61 -55
  786. data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +1368 -0
  787. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
  788. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  789. data/vendor/local/share/doc/groonga/ja/html/reference.html +44 -41
  790. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +7 -7
  791. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +7 -7
  792. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +7 -7
  793. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +7 -7
  794. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +7 -7
  795. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +7 -7
  796. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +7 -7
  797. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +7 -7
  798. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +7 -7
  799. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +7 -7
  800. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +7 -7
  801. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +7 -7
  802. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +7 -7
  803. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +7 -7
  804. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +7 -7
  805. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +7 -7
  806. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +7 -7
  807. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +7 -7
  808. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +7 -7
  809. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +7 -7
  810. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +7 -7
  811. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +7 -7
  812. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +7 -7
  813. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +7 -7
  814. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +7 -7
  815. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +7 -7
  816. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +7 -7
  817. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +7 -7
  818. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +7 -7
  819. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +7 -7
  820. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +7 -7
  821. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +7 -7
  822. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +7 -7
  823. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +33 -32
  824. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +7 -7
  825. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +7 -7
  826. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +7 -7
  827. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +7 -7
  828. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +7 -7
  829. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +7 -7
  830. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +7 -7
  831. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +7 -7
  832. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +7 -7
  833. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +7 -7
  834. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +7 -7
  835. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +7 -7
  836. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +7 -7
  837. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +7 -7
  838. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +7 -7
  839. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +7 -7
  840. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +7 -7
  841. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +7 -7
  842. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +7 -7
  843. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +7 -7
  844. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +7 -7
  845. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +7 -7
  846. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +7 -7
  847. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +7 -7
  848. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +7 -7
  849. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +7 -7
  850. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +7 -7
  851. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +7 -7
  852. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +7 -7
  853. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +7 -7
  854. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +7 -7
  855. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +7 -7
  856. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +7 -7
  857. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +7 -7
  858. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +7 -7
  859. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +7 -7
  860. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +7 -7
  861. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +7 -7
  862. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +7 -7
  863. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +12 -12
  864. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +1014 -0
  865. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +36 -36
  866. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +27 -27
  867. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +27 -27
  868. data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +33 -33
  869. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +27 -27
  870. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +27 -27
  871. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +27 -27
  872. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +29 -29
  873. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +33 -33
  874. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +31 -31
  875. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +31 -31
  876. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +69 -69
  877. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +113 -113
  878. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +33 -33
  879. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +31 -31
  880. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +29 -29
  881. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +53 -53
  882. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +27 -27
  883. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +43 -43
  884. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +33 -33
  885. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +43 -43
  886. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +33 -33
  887. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +45 -45
  888. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +27 -27
  889. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +27 -27
  890. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +7 -7
  891. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
  892. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +7 -7
  893. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +7 -7
  894. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +7 -7
  895. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +7 -7
  896. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +7 -7
  897. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +7 -7
  898. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +7 -7
  899. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +7 -7
  900. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +7 -7
  901. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -16
  902. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +7 -7
  903. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +7 -7
  904. data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +7 -7
  905. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +7 -7
  906. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +7 -7
  907. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +7 -7
  908. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +7 -7
  909. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +7 -7
  910. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +7 -7
  911. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +7 -7
  912. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +7 -7
  913. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +7 -7
  914. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +7 -7
  915. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +7 -7
  916. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +7 -7
  917. data/vendor/local/share/doc/groonga/ja/html/reference/functions/record_number.html +7 -7
  918. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +12 -12
  919. data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +163 -0
  920. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +34 -34
  921. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +25 -25
  922. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +25 -25
  923. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +25 -25
  924. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +25 -25
  925. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +25 -25
  926. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +25 -25
  927. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +25 -25
  928. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +30 -30
  929. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +163 -0
  930. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +7 -7
  931. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +7 -7
  932. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +7 -7
  933. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +7 -7
  934. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +7 -7
  935. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +8 -8
  936. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +12 -12
  937. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +7 -7
  938. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +7 -7
  939. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +7 -7
  940. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +7 -7
  941. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +7 -7
  942. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +7 -7
  943. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +7 -7
  944. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +7 -7
  945. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +7 -7
  946. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +7 -7
  947. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +7 -7
  948. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +7 -7
  949. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +7 -7
  950. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +7 -7
  951. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +7 -7
  952. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +7 -7
  953. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +7 -7
  954. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +7 -7
  955. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +7 -7
  956. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +11 -11
  957. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  958. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  959. data/vendor/local/share/doc/groonga/ja/html/server.html +7 -7
  960. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +7 -7
  961. data/vendor/local/share/doc/groonga/ja/html/server/http.html +7 -7
  962. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +7 -7
  963. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +7 -7
  964. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +7 -7
  965. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +7 -7
  966. data/vendor/local/share/doc/groonga/ja/html/server/package.html +7 -7
  967. data/vendor/local/share/doc/groonga/ja/html/spec.html +7 -7
  968. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +7 -7
  969. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
  970. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
  971. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  972. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -7
  973. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +7 -7
  974. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +7 -7
  975. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
  976. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
  977. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +7 -7
  978. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
  979. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
  980. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
  981. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +7 -7
  982. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
  983. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +7 -7
  984. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
  985. data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +7 -1
  986. data/vendor/local/share/groonga/examples/dictionary/html/index.html +1 -1
  987. data/vendor/local/share/license/msgpack/README.md +6 -7
  988. metadata +200 -16
  989. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  990. data/vendor/local/lib/libmsgpack.a +0 -0
  991. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  992. data/vendor/local/lib/libmsgpack.la +0 -41
  993. data/vendor/local/lib/libmsgpackc.la +0 -41
@@ -0,0 +1,112 @@
1
+ //
2
+ // MessagePack for C++ static resolution routine
3
+ //
4
+ // Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
5
+ //
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+ //
10
+ #ifndef MSGPACK_V1_OBJECT_DECL_HPP
11
+ #define MSGPACK_V1_OBJECT_DECL_HPP
12
+
13
+ #include "msgpack/versioning.hpp"
14
+ #include "msgpack/pack.hpp"
15
+ #include "msgpack/zone.hpp"
16
+ #include "msgpack/adaptor/adaptor_base.hpp"
17
+
18
+ #include <cstring>
19
+ #include <stdexcept>
20
+ #include <typeinfo>
21
+ #include <limits>
22
+ #include <ostream>
23
+ #include <typeinfo>
24
+ #include <iomanip>
25
+
26
+ namespace msgpack {
27
+
28
+ /// @cond
29
+ MSGPACK_API_VERSION_NAMESPACE(v1) {
30
+ /// @endcond
31
+
32
+ /// The class holds object and zone
33
+ class object_handle;
34
+
35
+ namespace detail {
36
+
37
+ template <std::size_t N>
38
+ std::size_t add_ext_type_size(std::size_t size);
39
+
40
+ template <>
41
+ std::size_t add_ext_type_size<4>(std::size_t size);
42
+
43
+ } // namespace detail
44
+
45
+ std::size_t aligned_zone_size(msgpack::object const& obj);
46
+
47
+ /// clone object
48
+ /**
49
+ * Clone (deep copy) object.
50
+ * The copied object is located on newly allocated zone.
51
+ * @param obj copy source object
52
+ *
53
+ * @return object_handle that holds deep copied object and zone.
54
+ */
55
+ object_handle clone(msgpack::object const& obj);
56
+
57
+ namespace detail {
58
+
59
+ template <typename Stream, typename T>
60
+ struct packer_serializer;
61
+
62
+ } // namespace detail
63
+
64
+ // obsolete
65
+ template <typename Type>
66
+ class define;
67
+
68
+ bool operator==(const msgpack::object& x, const msgpack::object& y);
69
+
70
+ template <typename T>
71
+ bool operator==(const msgpack::object& x, const T& y);
72
+
73
+ bool operator!=(const msgpack::object& x, const msgpack::object& y);
74
+
75
+ template <typename T>
76
+ bool operator==(const T& y, const msgpack::object& x);
77
+
78
+ template <typename T>
79
+ bool operator!=(const msgpack::object& x, const T& y);
80
+
81
+ template <typename T>
82
+ bool operator!=(const T& y, const msgpack::object& x);
83
+
84
+ void operator<< (msgpack::object& o, const msgpack_object& v);
85
+
86
+ // obsolete
87
+ template <typename T>
88
+ void convert(T& v, msgpack::object const& o);
89
+
90
+ // obsolete
91
+ template <typename Stream, typename T>
92
+ void pack(msgpack::packer<Stream>& o, const T& v);
93
+
94
+ // obsolete
95
+ template <typename Stream, typename T>
96
+ void pack_copy(msgpack::packer<Stream>& o, T v);
97
+
98
+ template <typename Stream>
99
+ msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object& v);
100
+
101
+ template <typename Stream>
102
+ msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object::with_zone& v);
103
+
104
+ std::ostream& operator<< (std::ostream& s, const msgpack::object& o);
105
+
106
+ /// @cond
107
+ } // MSGPACK_API_VERSION_NAMESPACE(v1)
108
+ /// @endcond
109
+
110
+ } // namespace msgpack
111
+
112
+ #endif // MSGPACK_V1_OBJECT_DECL_HPP
@@ -0,0 +1,252 @@
1
+ //
2
+ // MessagePack for C++ static resolution routine
3
+ //
4
+ // Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
5
+ //
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+ //
10
+
11
+ #ifndef MSGPACK_V1_OBJECT_FWD_HPP
12
+ #define MSGPACK_V1_OBJECT_FWD_HPP
13
+
14
+ #include "msgpack/object_fwd_decl.hpp"
15
+
16
+ namespace msgpack {
17
+
18
+ /// @cond
19
+ MSGPACK_API_VERSION_NAMESPACE(v1) {
20
+ /// @endcond
21
+
22
+ struct object_array {
23
+ uint32_t size;
24
+ msgpack::object* ptr;
25
+ };
26
+
27
+ struct object_map {
28
+ uint32_t size;
29
+ msgpack::object_kv* ptr;
30
+ };
31
+
32
+ struct object_str {
33
+ uint32_t size;
34
+ const char* ptr;
35
+ };
36
+
37
+ struct object_bin {
38
+ uint32_t size;
39
+ const char* ptr;
40
+ };
41
+
42
+ struct object_ext {
43
+ int8_t type() const { return ptr[0]; }
44
+ const char* data() const { return &ptr[1]; }
45
+ uint32_t size;
46
+ const char* ptr;
47
+ };
48
+
49
+
50
+ #if !defined(MSGPACK_USE_CPP03)
51
+
52
+ template <typename T>
53
+ struct has_as {
54
+ private:
55
+ template <typename U>
56
+ static auto check(U*) ->
57
+ // Check v1 specialization
58
+ typename std::is_same<
59
+ decltype(adaptor::as<U>()(std::declval<msgpack::object>())),
60
+ T
61
+ >::type;
62
+ template <typename>
63
+ static std::false_type check(...);
64
+ public:
65
+ using type = decltype(check<T>(MSGPACK_NULLPTR));
66
+ static constexpr bool value = type::value;
67
+ };
68
+
69
+ #endif // !defined(MSGPACK_USE_CPP03)
70
+
71
+ /// Object class that corresponding to MessagePack format object
72
+ /**
73
+ * See https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_object
74
+ */
75
+ struct object {
76
+ union union_type {
77
+ bool boolean;
78
+ uint64_t u64;
79
+ int64_t i64;
80
+ #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
81
+ double dec; // obsolete
82
+ #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
83
+ double f64;
84
+ msgpack::object_array array;
85
+ msgpack::object_map map;
86
+ msgpack::object_str str;
87
+ msgpack::object_bin bin;
88
+ msgpack::object_ext ext;
89
+ };
90
+
91
+ msgpack::type::object_type type;
92
+ union_type via;
93
+
94
+ /// Cheking nil
95
+ /**
96
+ * @return If the object is nil, then return true, else return false.
97
+ */
98
+ bool is_nil() const { return type == msgpack::type::NIL; }
99
+
100
+ #if defined(MSGPACK_USE_CPP03)
101
+
102
+ /// Get value as T
103
+ /**
104
+ * If the object can't be converted to T, msgpack::type_error would be thrown.
105
+ * @tparam T The type you want to get.
106
+ * @return The converted object.
107
+ */
108
+ template <typename T>
109
+ T as() const;
110
+
111
+ #else // defined(MSGPACK_USE_CPP03)
112
+
113
+ /// Get value as T
114
+ /**
115
+ * If the object can't be converted to T, msgpack::type_error would be thrown.
116
+ * @tparam T The type you want to get.
117
+ * @return The converted object.
118
+ */
119
+ template <typename T>
120
+ typename std::enable_if<msgpack::has_as<T>::value, T>::type as() const;
121
+
122
+ /// Get value as T
123
+ /**
124
+ * If the object can't be converted to T, msgpack::type_error would be thrown.
125
+ * @tparam T The type you want to get.
126
+ * @return The converted object.
127
+ */
128
+ template <typename T>
129
+ typename std::enable_if<!msgpack::has_as<T>::value, T>::type as() const;
130
+
131
+ #endif // defined(MSGPACK_USE_CPP03)
132
+
133
+ /// Convert the object
134
+ /**
135
+ * If the object can't be converted to T, msgpack::type_error would be thrown.
136
+ * @tparam T The type of v.
137
+ * @param v The value you want to get. `v` is output parameter. `v` is overwritten by converted value from the object.
138
+ * @return The reference of `v`.
139
+ */
140
+ template <typename T>
141
+ typename msgpack::enable_if<
142
+ !msgpack::is_array<T>::value && !msgpack::is_pointer<T>::value,
143
+ T&
144
+ >::type
145
+ convert(T& v) const;
146
+
147
+ template <typename T, std::size_t N>
148
+ T (&convert(T(&v)[N]) const)[N];
149
+
150
+
151
+ #if !defined(MSGPACK_DISABLE_LEGACY_CONVERT)
152
+ /// Convert the object (obsolete)
153
+ /**
154
+ * If the object can't be converted to T, msgpack::type_error would be thrown.
155
+ * @tparam T The type of v.
156
+ * @param v The pointer of the value you want to get. `v` is output parameter. `*v` is overwritten by converted value from the object.
157
+ * @return The pointer of `v`.
158
+ */
159
+ template <typename T>
160
+ typename msgpack::enable_if<
161
+ msgpack::is_pointer<T>::value,
162
+ T
163
+ >::type
164
+ convert(T v) const;
165
+ #endif // !defined(MSGPACK_DISABLE_LEGACY_CONVERT)
166
+
167
+ /// Convert the object if not nil
168
+ /**
169
+ * If the object is not nil and can't be converted to T, msgpack::type_error would be thrown.
170
+ * @tparam T The type of v.
171
+ * @param v The value you want to get. `v` is output parameter. `v` is overwritten by converted value from the object if the object is not nil.
172
+ * @return If the object is nil, then return false, else return true.
173
+ */
174
+ template <typename T>
175
+ bool convert_if_not_nil(T& v) const;
176
+
177
+ /// Default constructor. The object is set to nil.
178
+ object();
179
+
180
+ /// Copy constructor. Object is shallow copied.
181
+ object(const msgpack_object& o);
182
+
183
+ /// Construct object from T
184
+ /**
185
+ * If `v` is the type that is corresponding to MessegePack format str, bin, ext, array, or map,
186
+ * you need to call `object(const T& v, msgpack::zone& z)` instead of this constructor.
187
+ *
188
+ * @tparam T The type of `v`.
189
+ * @param v The value you want to convert.
190
+ */
191
+ template <typename T>
192
+ explicit object(const T& v);
193
+
194
+ /// Construct object from T
195
+ /**
196
+ * The object is constructed on the zone `z`.
197
+ * See https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_object
198
+ *
199
+ * @tparam T The type of `v`.
200
+ * @param v The value you want to convert.
201
+ * @param z The zone that is used by the object.
202
+ */
203
+ template <typename T>
204
+ object(const T& v, msgpack::zone& z);
205
+
206
+ /// Construct object from T (obsolete)
207
+ /**
208
+ * The object is constructed on the zone `z`.
209
+ * Use `object(const T& v, msgpack::zone& z)` instead of this constructor.
210
+ * See https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_object
211
+ *
212
+ * @tparam T The type of `v`.
213
+ * @param v The value you want to convert.
214
+ * @param z The pointer to the zone that is used by the object.
215
+ */
216
+ template <typename T>
217
+ object(const T& v, msgpack::zone* z);
218
+
219
+ template <typename T>
220
+ object& operator=(const T& v);
221
+
222
+ operator msgpack_object() const;
223
+
224
+ struct with_zone;
225
+
226
+ protected:
227
+ struct implicit_type;
228
+
229
+ public:
230
+ implicit_type convert() const;
231
+ };
232
+
233
+ class type_error : public std::bad_cast { };
234
+
235
+ struct object::implicit_type {
236
+ implicit_type(object const& o) : obj(o) { }
237
+ ~implicit_type() { }
238
+
239
+ template <typename T>
240
+ operator T();
241
+
242
+ private:
243
+ object const& obj;
244
+ };
245
+
246
+ /// @cond
247
+ } // MSGPACK_API_VERSION_NAMESPACE(v1)
248
+ /// @endcond
249
+
250
+ } // namespace msgpack
251
+
252
+ #endif // MSGPACK_V1_OBJECT_FWD_HPP
@@ -0,0 +1,76 @@
1
+ //
2
+ // MessagePack for C++ static resolution routine
3
+ //
4
+ // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
5
+ //
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+ //
10
+
11
+ #ifndef MSGPACK_V1_OBJECT_FWD_DECL_HPP
12
+ #define MSGPACK_V1_OBJECT_FWD_DECL_HPP
13
+
14
+ #include "msgpack/versioning.hpp"
15
+ #include "msgpack/zone.hpp"
16
+ #include "msgpack/object.h"
17
+
18
+ #include <typeinfo>
19
+
20
+ namespace msgpack {
21
+
22
+ /// @cond
23
+ MSGPACK_API_VERSION_NAMESPACE(v1) {
24
+ /// @endcond
25
+
26
+
27
+ namespace type {
28
+ enum object_type {
29
+ NIL = MSGPACK_OBJECT_NIL,
30
+ BOOLEAN = MSGPACK_OBJECT_BOOLEAN,
31
+ POSITIVE_INTEGER = MSGPACK_OBJECT_POSITIVE_INTEGER,
32
+ NEGATIVE_INTEGER = MSGPACK_OBJECT_NEGATIVE_INTEGER,
33
+ FLOAT = MSGPACK_OBJECT_FLOAT,
34
+ #if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
35
+ DOUBLE = MSGPACK_OBJECT_DOUBLE, // obsolete
36
+ #endif // MSGPACK_USE_LEGACY_NAME_AS_FLOAT
37
+ STR = MSGPACK_OBJECT_STR,
38
+ BIN = MSGPACK_OBJECT_BIN,
39
+ ARRAY = MSGPACK_OBJECT_ARRAY,
40
+ MAP = MSGPACK_OBJECT_MAP,
41
+ EXT = MSGPACK_OBJECT_EXT
42
+ };
43
+ }
44
+
45
+
46
+ struct object;
47
+ struct object_kv;
48
+
49
+ struct object_array;
50
+ struct object_map;
51
+ struct object_str;
52
+ struct object_bin;
53
+ struct object_ext;
54
+
55
+
56
+ #if !defined(MSGPACK_USE_CPP03)
57
+
58
+ namespace adaptor {
59
+ template <typename T, typename Enabler = void>
60
+ struct as;
61
+ } // namespace adaptor
62
+
63
+ template <typename T>
64
+ struct has_as;
65
+
66
+ #endif // !defined(MSGPACK_USE_CPP03)
67
+
68
+ class type_error;
69
+
70
+ /// @cond
71
+ } // MSGPACK_API_VERSION_NAMESPACE(v1)
72
+ /// @endcond
73
+
74
+ } // namespace msgpack
75
+
76
+ #endif // MSGPACK_V1_OBJECT_FWD_DECL_HPP
@@ -0,0 +1,1602 @@
1
+ //
2
+ // MessagePack for C++ serializing routine
3
+ //
4
+ // Copyright (C) 2008-2016 FURUHASHI Sadayuki and KONDO Takatoshi
5
+ //
6
+ // Distributed under the Boost Software License, Version 1.0.
7
+ // (See accompanying file LICENSE_1_0.txt or copy at
8
+ // http://www.boost.org/LICENSE_1_0.txt)
9
+ //
10
+ #ifndef MSGPACK_V1_PACK_HPP
11
+ #define MSGPACK_V1_PACK_HPP
12
+
13
+ #include "msgpack/v1/pack_decl.hpp"
14
+
15
+ #include <stdexcept>
16
+ #include <limits>
17
+ #include <cstring>
18
+ #include <climits>
19
+
20
+ namespace msgpack {
21
+
22
+ /// @cond
23
+ MSGPACK_API_VERSION_NAMESPACE(v1) {
24
+ /// @endcond
25
+
26
+ /// The class template that supports continuous packing.
27
+ /**
28
+ * @tparam Stream Any type that have a member function `Stream write(const char*, size_t s)`
29
+ *
30
+ */
31
+ template <typename Stream>
32
+ class packer {
33
+ public:
34
+ /// Constructor
35
+ /**
36
+ * This constructor is left for compatibility.
37
+ * Use `packer(Stream& s)` instead of the constructor.
38
+ *
39
+ * @param s A pointer to packing destination stream object.
40
+ */
41
+ packer(Stream* s);
42
+ /// Constructor
43
+ /**
44
+ * @param s Packing destination stream object.
45
+ */
46
+ packer(Stream& s);
47
+
48
+ public:
49
+ /// Packing function template
50
+ /**
51
+ * @tparam T The type of packing object.
52
+ *
53
+ * @param v a packing object.
54
+ *
55
+ * @return The reference of `*this`.
56
+ */
57
+ template <typename T>
58
+ packer<Stream>& pack(const T& v);
59
+
60
+ /// Packing uint8
61
+ /**
62
+ * The byte size of the packed data depends on `d`.
63
+ * The packed type is positive fixnum or uint8.
64
+ * The minimum byte size expression is used.
65
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
66
+ *
67
+ * @param d a packing object.
68
+ *
69
+ * @return The reference of `*this`.
70
+ */
71
+ packer<Stream>& pack_uint8(uint8_t d);
72
+
73
+ /// Packing uint16
74
+ /**
75
+ * The byte size of the packed data depends on `d`.
76
+ * The packed type is positive fixnum, uint8 or uint16.
77
+ * The minimum byte size expression is used.
78
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
79
+ *
80
+ * @param d a packing object.
81
+ *
82
+ * @return The reference of `*this`.
83
+ */
84
+ packer<Stream>& pack_uint16(uint16_t d);
85
+
86
+ /// Packing uint32
87
+ /**
88
+ * The byte size of the packed data depends on `d`.
89
+ * The packed type is positive fixnum, uint8, uint16 or uint32.
90
+ * The minimum byte size expression is used.
91
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
92
+ *
93
+ * @param d a packing object.
94
+ *
95
+ * @return The reference of `*this`.
96
+ */
97
+ packer<Stream>& pack_uint32(uint32_t d);
98
+
99
+ /// Packing uint16
100
+ /**
101
+ * The byte size of the packed data depends on `d`.
102
+ * The packed type is positive fixnum, uint8, uint16, uint32 or uint64.
103
+ * The minimum byte size expression is used.
104
+ * positive fixnum, uint8, uint16, or uint32 is used.
105
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
106
+ *
107
+ * @param d a packing object.
108
+ *
109
+ * @return The reference of `*this`.
110
+ */
111
+ packer<Stream>& pack_uint64(uint64_t d);
112
+
113
+ /// Packing int8
114
+ /**
115
+ * The byte size of the packed data depends on `d`.
116
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint8,
117
+ * else the packed type is negative fixnum, or int8
118
+ * The minimum byte size expression is used.
119
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
120
+ *
121
+ * @param d a packing object.
122
+ *
123
+ * @return The reference of `*this`.
124
+ */
125
+ packer<Stream>& pack_int8(int8_t d);
126
+
127
+ /// Packing int16
128
+ /**
129
+ * The byte size of the packed data depends on `d`.
130
+ * If `d` is zero or positive, the packed type is positive fixnum, uint8, or uint16,
131
+ * else the packed type is negative fixnum, int8, or int16.
132
+ * The minimum byte size expression is used.
133
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
134
+ *
135
+ * @param d a packing object.
136
+ *
137
+ * @return The reference of `*this`.
138
+ */
139
+ packer<Stream>& pack_int16(int16_t d);
140
+
141
+ /// Packing int32
142
+ /**
143
+ * The byte size of the packed data depends on `d`.
144
+ * If `d` is zero or positive, the packed type is positive fixnum, uint8, uint16, or uint32,
145
+ * else the packed type is negative fixnum, int8, int16, or int32.
146
+ * The minimum byte size expression is used.
147
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
148
+ *
149
+ * @param d a packing object.
150
+ *
151
+ * @return The reference of `*this`.
152
+ */
153
+ packer<Stream>& pack_int32(int32_t d);
154
+
155
+ /// Packing int32
156
+ /**
157
+ * The byte size of the packed data depends on `d`.
158
+ * If `d` is zero or positive, the packed type is positive fixnum, uint8, uint16, uint32, or uint64,
159
+ * else the packed type is negative fixnum, int8, int16, int32, or int64.
160
+ * The minimum byte size expression is used.
161
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
162
+ *
163
+ * @param d a packing object.
164
+ *
165
+ * @return The reference of `*this`.
166
+ */
167
+ packer<Stream>& pack_int64(int64_t d);
168
+
169
+
170
+
171
+ /// Packing uint8 (fixed packed type).
172
+ /**
173
+ * The packed type is always uint8.
174
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
175
+ *
176
+ * @param d a packing object.
177
+ *
178
+ * @return The reference of `*this`.
179
+ */
180
+ packer<Stream>& pack_fix_uint8(uint8_t d);
181
+
182
+ /// Packing uint8 (fixed packed type).
183
+ /**
184
+ * The packed type is always uint16.
185
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
186
+ *
187
+ * @param d a packing object.
188
+ *
189
+ * @return The reference of `*this`.
190
+ */
191
+ packer<Stream>& pack_fix_uint16(uint16_t d);
192
+
193
+ /// Packing uint8 (fixed packed type).
194
+ /**
195
+ * The packed type is always uint32.
196
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
197
+ *
198
+ * @param d a packing object.
199
+ *
200
+ * @return The reference of `*this`.
201
+ */
202
+ packer<Stream>& pack_fix_uint32(uint32_t d);
203
+
204
+ /// Packing uint8 (fixed packed type).
205
+ /**
206
+ * The packed type is always uint64.
207
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
208
+ *
209
+ * @param d a packing object.
210
+ *
211
+ * @return The reference of `*this`.
212
+ */
213
+ packer<Stream>& pack_fix_uint64(uint64_t d);
214
+
215
+ /// Packing uint8 (fixed packed type).
216
+ /**
217
+ * The packed type is always int8.
218
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
219
+ *
220
+ * @param d a packing object.
221
+ *
222
+ * @return The reference of `*this`.
223
+ */
224
+ packer<Stream>& pack_fix_int8(int8_t d);
225
+
226
+ /// Packing uint8 (fixed packed type).
227
+ /**
228
+ * The packed type is always int16.
229
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
230
+ *
231
+ * @param d a packing object.
232
+ *
233
+ * @return The reference of `*this`.
234
+ */
235
+ packer<Stream>& pack_fix_int16(int16_t d);
236
+
237
+ /// Packing uint8 (fixed packed type).
238
+ /**
239
+ * The packed type is always int32.
240
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
241
+ *
242
+ * @param d a packing object.
243
+ *
244
+ * @return The reference of `*this`.
245
+ */
246
+ packer<Stream>& pack_fix_int32(int32_t d);
247
+
248
+ /// Packing uint8 (fixed packed type).
249
+ /**
250
+ * The packed type is always int64.
251
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
252
+ *
253
+ * @param d a packing object.
254
+ *
255
+ * @return The reference of `*this`.
256
+ */
257
+ packer<Stream>& pack_fix_int64(int64_t d);
258
+
259
+
260
+ /// Packing char
261
+ /**
262
+ * The byte size of the packed data depends on `d`.
263
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
264
+ * else the packed type is negative fixnum, or int*
265
+ * The minimum byte size expression is used.
266
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
267
+ *
268
+ * @param d a packing object.
269
+ *
270
+ * @return The reference of `*this`.
271
+ */
272
+ packer<Stream>& pack_char(char d);
273
+
274
+ /// Packing signed char
275
+ /**
276
+ * The byte size of the packed data depends on `d`.
277
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
278
+ * else the packed type is negative fixnum, or int*
279
+ * The minimum byte size expression is used.
280
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
281
+ *
282
+ * @param d a packing object.
283
+ *
284
+ * @return The reference of `*this`.
285
+ */
286
+ packer<Stream>& pack_signed_char(signed char d);
287
+
288
+ /// Packing short
289
+ /**
290
+ * The byte size of the packed data depends on `d`.
291
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
292
+ * else the packed type is negative fixnum, or int*
293
+ * The minimum byte size expression is used.
294
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
295
+ *
296
+ * @param d a packing object.
297
+ *
298
+ * @return The reference of `*this`.
299
+ */
300
+ packer<Stream>& pack_short(short d);
301
+
302
+ /// Packing int
303
+ /**
304
+ * The byte size of the packed data depends on `d`.
305
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
306
+ * else the packed type is negative fixnum, or int*
307
+ * The minimum byte size expression is used.
308
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
309
+ *
310
+ * @param d a packing object.
311
+ *
312
+ * @return The reference of `*this`.
313
+ */
314
+ packer<Stream>& pack_int(int d);
315
+
316
+ /// Packing long
317
+ /**
318
+ * The byte size of the packed data depends on `d`.
319
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
320
+ * else the packed type is negative fixnum, or int*
321
+ * The minimum byte size expression is used.
322
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
323
+ *
324
+ * @param d a packing object.
325
+ *
326
+ * @return The reference of `*this`.
327
+ */
328
+ packer<Stream>& pack_long(long d);
329
+
330
+ /// Packing long long
331
+ /**
332
+ * The byte size of the packed data depends on `d`.
333
+ * If `d` is zero or positive, the packed type is positive fixnum, or uint*,
334
+ * else the packed type is negative fixnum, or int*
335
+ * The minimum byte size expression is used.
336
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
337
+ *
338
+ * @param d a packing object.
339
+ *
340
+ * @return The reference of `*this`.
341
+ */
342
+ packer<Stream>& pack_long_long(long long d);
343
+
344
+
345
+ /// Packing unsigned char
346
+ /**
347
+ * The byte size of the packed data depends on `d`.
348
+ * The packed type is positive fixnum, or uint*.
349
+ * The minimum byte size expression is used.
350
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
351
+ *
352
+ * @param d a packing object.
353
+ *
354
+ * @return The reference of `*this`.
355
+ */
356
+ packer<Stream>& pack_unsigned_char(unsigned char d);
357
+
358
+ /// Packing unsigned short
359
+ /**
360
+ * The byte size of the packed data depends on `d`.
361
+ * The packed type is positive fixnum, or uint*.
362
+ * The minimum byte size expression is used.
363
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
364
+ *
365
+ * @param d a packing object.
366
+ *
367
+ * @return The reference of `*this`.
368
+ */
369
+ packer<Stream>& pack_unsigned_short(unsigned short d);
370
+
371
+ /// Packing unsigned int
372
+ /**
373
+ * The byte size of the packed data depends on `d`.
374
+ * The packed type is positive fixnum, or uint*.
375
+ * The minimum byte size expression is used.
376
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
377
+ *
378
+ * @param d a packing object.
379
+ *
380
+ * @return The reference of `*this`.
381
+ */
382
+ packer<Stream>& pack_unsigned_int(unsigned int d);
383
+
384
+ /// Packing unsigned long
385
+ /**
386
+ * The byte size of the packed data depends on `d`.
387
+ * The packed type is positive fixnum, or uint*.
388
+ * The minimum byte size expression is used.
389
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
390
+ *
391
+ * @param d a packing object.
392
+ *
393
+ * @return The reference of `*this`.
394
+ */
395
+ packer<Stream>& pack_unsigned_long(unsigned long d);
396
+
397
+ /// Packing unsigned long long
398
+ /**
399
+ * The byte size of the packed data depends on `d`.
400
+ * The packed type is positive fixnum, or uint*.
401
+ * The minimum byte size expression is used.
402
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-int
403
+ *
404
+ * @param d a packing object.
405
+ *
406
+ * @return The reference of `*this`.
407
+ */
408
+ packer<Stream>& pack_unsigned_long_long(unsigned long long d);
409
+
410
+ /// Packing float
411
+ /**
412
+ * The packed type is float32.
413
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-float
414
+ *
415
+ * @param d a packing object.
416
+ *
417
+ * @return The reference of `*this`.
418
+ */
419
+ packer<Stream>& pack_float(float d);
420
+
421
+ /// Packing double
422
+ /**
423
+ * The packed type is float64.
424
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-float
425
+ *
426
+ * @param d a packing object.
427
+ *
428
+ * @return The reference of `*this`.
429
+ */
430
+ packer<Stream>& pack_double(double d);
431
+
432
+
433
+ /// Packing nil
434
+ /**
435
+ * The packed type is nil.
436
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-nil
437
+ *
438
+ * @return The reference of `*this`.
439
+ */
440
+ packer<Stream>& pack_nil();
441
+
442
+ /// Packing true
443
+ /**
444
+ * The packed type is bool, value is true.
445
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#bool-format-family
446
+ *
447
+ * @return The reference of `*this`.
448
+ */
449
+ packer<Stream>& pack_true();
450
+
451
+ /// Packing false
452
+ /**
453
+ * The packed type is bool, value is false.
454
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#bool-format-family
455
+ *
456
+ * @return The reference of `*this`.
457
+ */
458
+ packer<Stream>& pack_false();
459
+
460
+ /// Packing array header and size
461
+ /**
462
+ * The packed type is array header and array size.
463
+ * You need to pack `n` msgpack objects following this header and size.
464
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#array-format-family
465
+ *
466
+ * @param n The number of array elements (array size).
467
+ *
468
+ * @return The reference of `*this`.
469
+ */
470
+ packer<Stream>& pack_array(uint32_t n);
471
+
472
+ /// Packing map header and size
473
+ /**
474
+ * The packed type is map header and map size.
475
+ * You need to pack `n` pairs of msgpack objects following this header and size.
476
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#map-format-family
477
+ *
478
+ * @param n The number of array elements (array size).
479
+ *
480
+ * @return The reference of `*this`.
481
+ */
482
+ packer<Stream>& pack_map(uint32_t n);
483
+
484
+
485
+ /// Packing str header and length
486
+ /**
487
+ * The packed type is str header and length.
488
+ * The minimum byte size length expression is used.
489
+ * You need to call `pack_str_body(const char* b, uint32_t l)` after this function calling with the same `l` value.
490
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
491
+ *
492
+ * @param l The length of string.
493
+ *
494
+ * @return The reference of `*this`.
495
+ */
496
+ packer<Stream>& pack_str(uint32_t l);
497
+
498
+ /// Packing str body
499
+ /**
500
+ * You need to call this function just after `pack_str(uint32_t l)` calling.
501
+ * The value `l` should be the same as `pack_str(uint32_t l)` argument `l`.
502
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
503
+ *
504
+ * @param l The length of string.
505
+ *
506
+ * @return The reference of `*this`.
507
+ */
508
+ packer<Stream>& pack_str_body(const char* b, uint32_t l);
509
+
510
+ /// Packing raw (v4) header and length
511
+ /**
512
+ * The packed type is raw header and length.
513
+ * The minimum byte size length expression is used.
514
+ * The format raw (v4) is old MessagePack version4 format.
515
+ * You need to call `pack_v4raw_body(const char* b, uint32_t l)` after this function calling with the same `l` value.
516
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
517
+ *
518
+ * @param l The length of string.
519
+ *
520
+ * @return The reference of `*this`.
521
+ */
522
+ packer<Stream>& pack_v4raw(uint32_t l);
523
+
524
+ /// Packing raw (v4) body
525
+ /**
526
+ * The format raw (v4) is old MessagePack version4 format.
527
+ * You need to call this function just after `pack_v4raw(uint32_t l)` calling.
528
+ * The value `l` should be the same as `pack_v4raw(uint32_t l)` argument `l`.
529
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-str
530
+ *
531
+ * @param l The length of string.
532
+ *
533
+ * @return The reference of `*this`.
534
+ */
535
+ packer<Stream>& pack_v4raw_body(const char* b, uint32_t l);
536
+
537
+ /// Packing bin header and length
538
+ /**
539
+ * The packed type is bin header and length.
540
+ * The minimum byte size length expression is used.
541
+ * You need to call `pack_bin_body(const char* b, uint32_t l)` after this function calling with the same `l` value.
542
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family
543
+ *
544
+ * @param l The length of string.
545
+ *
546
+ * @return The reference of `*this`.
547
+ */
548
+ packer<Stream>& pack_bin(uint32_t l);
549
+
550
+ /// Packing bin body
551
+ /**
552
+ * You need to call this function just after `pack_bin(uint32_t l)` calling.
553
+ * The value `l` should be the same as `pack_bin(uint32_t l)` argument `l`.
554
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family
555
+ *
556
+ * @param l The length of string.
557
+ *
558
+ * @return The reference of `*this`.
559
+ */
560
+ packer<Stream>& pack_bin_body(const char* b, uint32_t l);
561
+
562
+ /// Packing ext header, type, and length
563
+ /**
564
+ * The packed type is ext.
565
+ * The minimum byte size length expression is used.
566
+ * The length 1, 2, 4, 8, and 16 can be encoded in the header.
567
+ * You need to call `pack_ext_body(const char* b, uint32_t l)` after this function calling with the same `l` value.
568
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#formats-ext
569
+ *
570
+ * @param l The length of string.
571
+ *
572
+ * @return The reference of `*this`.
573
+ */
574
+ packer<Stream>& pack_ext(size_t l, int8_t type);
575
+
576
+ /// Packing ext body
577
+ /**
578
+ * You need to call this function just after `pack_ext(size_t l, int8_t type)` calling.
579
+ * The value `l` should be the same as `pack_ext(size_t l, int8_t type)` argument `l`.
580
+ * See https://github.com/msgpack/msgpack/blob/master/spec.md#bin-format-family
581
+ *
582
+ * @param l The length of string.
583
+ *
584
+ * @return The reference of `*this`.
585
+ */
586
+ packer<Stream>& pack_ext_body(const char* b, uint32_t l);
587
+
588
+ private:
589
+ template <typename T>
590
+ void pack_imp_uint8(T d);
591
+ template <typename T>
592
+ void pack_imp_uint16(T d);
593
+ template <typename T>
594
+ void pack_imp_uint32(T d);
595
+ template <typename T>
596
+ void pack_imp_uint64(T d);
597
+ template <typename T>
598
+ void pack_imp_int8(T d);
599
+ template <typename T>
600
+ void pack_imp_int16(T d);
601
+ template <typename T>
602
+ void pack_imp_int32(T d);
603
+ template <typename T>
604
+ void pack_imp_int64(T d);
605
+
606
+ void append_buffer(const char* buf, size_t len)
607
+ { m_stream.write(buf, len); }
608
+
609
+ private:
610
+ Stream& m_stream;
611
+
612
+ #if defined(MSGPACK_USE_CPP03)
613
+ private:
614
+ packer(const packer&);
615
+ packer& operator=(const packer&);
616
+ packer();
617
+ #else // defined(MSGPACK_USE_CPP03)
618
+ public:
619
+ packer(const packer&) = delete;
620
+ packer& operator=(const packer&) = delete;
621
+ packer() = delete;
622
+ #endif // defined(MSGPACK_USE_CPP03)
623
+ };
624
+
625
+
626
+ /// Pack the value as MessagePack format into the stream
627
+ /**
628
+ * This function template is left for compatibility.
629
+ * Use `void pack(Stream& s, const T& v)` instead of the function template.
630
+ *
631
+ * @tparam Stream Any type that have a member function `Stream write(const char*, size_t s)`
632
+ * @tparam T Any type that is adapted to MessagePack
633
+ * @param s The pointer to packing destination stream
634
+ * @param v Packing value
635
+ */
636
+ template <typename Stream, typename T>
637
+ inline void pack(Stream* s, const T& v)
638
+ {
639
+ packer<Stream>(*s).pack(v);
640
+ }
641
+
642
+ /// Pack the value as MessagePack format into the stream
643
+ /**
644
+ * @tparam Stream Any type that have a member function `Stream write(const char*, size_t s)`
645
+ * @tparam T Any type that is adapted to MessagePack
646
+ * @param s Packing destination stream
647
+ * @param v Packing value
648
+ */
649
+ template <typename Stream, typename T>
650
+ inline void pack(Stream& s, const T& v)
651
+ {
652
+ packer<Stream>(s).pack(v);
653
+ }
654
+
655
+
656
+ #if MSGPACK_ENDIAN_LITTLE_BYTE
657
+ template <typename T>
658
+ inline char take8_8(T d) {
659
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
660
+ }
661
+ template <typename T>
662
+ inline char take8_16(T d) {
663
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
664
+ }
665
+ template <typename T>
666
+ inline char take8_32(T d) {
667
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
668
+ }
669
+ template <typename T>
670
+ inline char take8_64(T d) {
671
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
672
+ }
673
+
674
+ #elif MSGPACK_ENDIAN_BIG_BYTE
675
+
676
+ template <typename T>
677
+ inline char take8_8(T d) {
678
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[0]);
679
+ }
680
+ template <typename T>
681
+ inline char take8_16(T d) {
682
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[1]);
683
+ }
684
+ template <typename T>
685
+ inline char take8_32(T d) {
686
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[3]);
687
+ }
688
+ template <typename T>
689
+ inline char take8_64(T d) {
690
+ return static_cast<char>(reinterpret_cast<uint8_t*>(&d)[7]);
691
+ }
692
+
693
+ #else
694
+ #error msgpack-c supports only big endian and little endian
695
+ #endif
696
+
697
+ template <typename Stream>
698
+ inline packer<Stream>::packer(Stream* s) : m_stream(*s) { }
699
+
700
+ template <typename Stream>
701
+ inline packer<Stream>::packer(Stream& s) : m_stream(s) { }
702
+
703
+
704
+ template <typename Stream>
705
+ inline packer<Stream>& packer<Stream>::pack_uint8(uint8_t d)
706
+ { pack_imp_uint8(d); return *this; }
707
+
708
+ template <typename Stream>
709
+ inline packer<Stream>& packer<Stream>::pack_uint16(uint16_t d)
710
+ { pack_imp_uint16(d); return *this; }
711
+
712
+ template <typename Stream>
713
+ inline packer<Stream>& packer<Stream>::pack_uint32(uint32_t d)
714
+ { pack_imp_uint32(d); return *this; }
715
+
716
+ template <typename Stream>
717
+ inline packer<Stream>& packer<Stream>::pack_uint64(uint64_t d)
718
+ { pack_imp_uint64(d); return *this; }
719
+
720
+ template <typename Stream>
721
+ inline packer<Stream>& packer<Stream>::pack_int8(int8_t d)
722
+ { pack_imp_int8(d); return *this; }
723
+
724
+ template <typename Stream>
725
+ inline packer<Stream>& packer<Stream>::pack_int16(int16_t d)
726
+ { pack_imp_int16(d); return *this; }
727
+
728
+ template <typename Stream>
729
+ inline packer<Stream>& packer<Stream>::pack_int32(int32_t d)
730
+ { pack_imp_int32(d); return *this; }
731
+
732
+ template <typename Stream>
733
+ inline packer<Stream>& packer<Stream>::pack_int64(int64_t d)
734
+ { pack_imp_int64(d); return *this;}
735
+
736
+
737
+ template <typename Stream>
738
+ inline packer<Stream>& packer<Stream>::pack_fix_uint8(uint8_t d)
739
+ {
740
+ char buf[2] = {static_cast<char>(0xccu), take8_8(d)};
741
+ append_buffer(buf, 2);
742
+ return *this;
743
+ }
744
+
745
+ template <typename Stream>
746
+ inline packer<Stream>& packer<Stream>::pack_fix_uint16(uint16_t d)
747
+ {
748
+ char buf[3];
749
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], d);
750
+ append_buffer(buf, 3);
751
+ return *this;
752
+ }
753
+
754
+ template <typename Stream>
755
+ inline packer<Stream>& packer<Stream>::pack_fix_uint32(uint32_t d)
756
+ {
757
+ char buf[5];
758
+ buf[0] = static_cast<char>(0xceu); _msgpack_store32(&buf[1], d);
759
+ append_buffer(buf, 5);
760
+ return *this;
761
+ }
762
+
763
+ template <typename Stream>
764
+ inline packer<Stream>& packer<Stream>::pack_fix_uint64(uint64_t d)
765
+ {
766
+ char buf[9];
767
+ buf[0] = static_cast<char>(0xcfu); _msgpack_store64(&buf[1], d);
768
+ append_buffer(buf, 9);
769
+ return *this;
770
+ }
771
+
772
+ template <typename Stream>
773
+ inline packer<Stream>& packer<Stream>::pack_fix_int8(int8_t d)
774
+ {
775
+ char buf[2] = {static_cast<char>(0xd0u), take8_8(d)};
776
+ append_buffer(buf, 2);
777
+ return *this;
778
+ }
779
+
780
+ template <typename Stream>
781
+ inline packer<Stream>& packer<Stream>::pack_fix_int16(int16_t d)
782
+ {
783
+ char buf[3];
784
+ buf[0] = static_cast<char>(0xd1u); _msgpack_store16(&buf[1], d);
785
+ append_buffer(buf, 3);
786
+ return *this;
787
+ }
788
+
789
+ template <typename Stream>
790
+ inline packer<Stream>& packer<Stream>::pack_fix_int32(int32_t d)
791
+ {
792
+ char buf[5];
793
+ buf[0] = static_cast<char>(0xd2u); _msgpack_store32(&buf[1], d);
794
+ append_buffer(buf, 5);
795
+ return *this;
796
+ }
797
+
798
+ template <typename Stream>
799
+ inline packer<Stream>& packer<Stream>::pack_fix_int64(int64_t d)
800
+ {
801
+ char buf[9];
802
+ buf[0] = static_cast<char>(0xd3u); _msgpack_store64(&buf[1], d);
803
+ append_buffer(buf, 9);
804
+ return *this;
805
+ }
806
+
807
+
808
+ template <typename Stream>
809
+ inline packer<Stream>& packer<Stream>::pack_char(char d)
810
+ {
811
+ #if defined(CHAR_MIN)
812
+ #if CHAR_MIN < 0
813
+ pack_imp_int8(d);
814
+ #else
815
+ pack_imp_uint8(d);
816
+ #endif
817
+ #else
818
+ #error CHAR_MIN is not defined
819
+ #endif
820
+ return *this;
821
+ }
822
+
823
+ template <typename Stream>
824
+ inline packer<Stream>& packer<Stream>::pack_signed_char(signed char d)
825
+ {
826
+ pack_imp_int8(d);
827
+ return *this;
828
+ }
829
+
830
+ template <typename Stream>
831
+ inline packer<Stream>& packer<Stream>::pack_short(short d)
832
+ {
833
+ #if defined(SIZEOF_SHORT)
834
+ #if SIZEOF_SHORT == 2
835
+ pack_imp_int16(d);
836
+ #elif SIZEOF_SHORT == 4
837
+ pack_imp_int32(d);
838
+ #else
839
+ pack_imp_int64(d);
840
+ #endif
841
+
842
+ #elif defined(SHRT_MAX)
843
+ #if SHRT_MAX == 0x7fff
844
+ pack_imp_int16(d);
845
+ #elif SHRT_MAX == 0x7fffffff
846
+ pack_imp_int32(d);
847
+ #else
848
+ pack_imp_int64(d);
849
+ #endif
850
+
851
+ #else
852
+ if(sizeof(short) == 2) {
853
+ pack_imp_int16(d);
854
+ } else if(sizeof(short) == 4) {
855
+ pack_imp_int32(d);
856
+ } else {
857
+ pack_imp_int64(d);
858
+ }
859
+ #endif
860
+ return *this;
861
+ }
862
+
863
+ template <typename Stream>
864
+ inline packer<Stream>& packer<Stream>::pack_int(int d)
865
+ {
866
+ #if defined(SIZEOF_INT)
867
+ #if SIZEOF_INT == 2
868
+ pack_imp_int16(d);
869
+ #elif SIZEOF_INT == 4
870
+ pack_imp_int32(d);
871
+ #else
872
+ pack_imp_int64(d);
873
+ #endif
874
+
875
+ #elif defined(INT_MAX)
876
+ #if INT_MAX == 0x7fff
877
+ pack_imp_int16(d);
878
+ #elif INT_MAX == 0x7fffffff
879
+ pack_imp_int32(d);
880
+ #else
881
+ pack_imp_int64(d);
882
+ #endif
883
+
884
+ #else
885
+ if(sizeof(int) == 2) {
886
+ pack_imp_int16(d);
887
+ } else if(sizeof(int) == 4) {
888
+ pack_imp_int32(d);
889
+ } else {
890
+ pack_imp_int64(d);
891
+ }
892
+ #endif
893
+ return *this;
894
+ }
895
+
896
+ template <typename Stream>
897
+ inline packer<Stream>& packer<Stream>::pack_long(long d)
898
+ {
899
+ #if defined(SIZEOF_LONG)
900
+ #if SIZEOF_LONG == 2
901
+ pack_imp_int16(d);
902
+ #elif SIZEOF_LONG == 4
903
+ pack_imp_int32(d);
904
+ #else
905
+ pack_imp_int64(d);
906
+ #endif
907
+
908
+ #elif defined(LONG_MAX)
909
+ #if LONG_MAX == 0x7fffL
910
+ pack_imp_int16(d);
911
+ #elif LONG_MAX == 0x7fffffffL
912
+ pack_imp_int32(d);
913
+ #else
914
+ pack_imp_int64(d);
915
+ #endif
916
+
917
+ #else
918
+ if(sizeof(long) == 2) {
919
+ pack_imp_int16(d);
920
+ } else if(sizeof(long) == 4) {
921
+ pack_imp_int32(d);
922
+ } else {
923
+ pack_imp_int64(d);
924
+ }
925
+ #endif
926
+ return *this;
927
+ }
928
+
929
+ template <typename Stream>
930
+ inline packer<Stream>& packer<Stream>::pack_long_long(long long d)
931
+ {
932
+ #if defined(SIZEOF_LONG_LONG)
933
+ #if SIZEOF_LONG_LONG == 2
934
+ pack_imp_int16(d);
935
+ #elif SIZEOF_LONG_LONG == 4
936
+ pack_imp_int32(d);
937
+ #else
938
+ pack_imp_int64(d);
939
+ #endif
940
+
941
+ #elif defined(LLONG_MAX)
942
+ #if LLONG_MAX == 0x7fffL
943
+ pack_imp_int16(d);
944
+ #elif LLONG_MAX == 0x7fffffffL
945
+ pack_imp_int32(d);
946
+ #else
947
+ pack_imp_int64(d);
948
+ #endif
949
+
950
+ #else
951
+ if(sizeof(long long) == 2) {
952
+ pack_imp_int16(d);
953
+ } else if(sizeof(long long) == 4) {
954
+ pack_imp_int32(d);
955
+ } else {
956
+ pack_imp_int64(d);
957
+ }
958
+ #endif
959
+ return *this;
960
+ }
961
+
962
+
963
+ template <typename Stream>
964
+ inline packer<Stream>& packer<Stream>::pack_unsigned_char(unsigned char d)
965
+ {
966
+ pack_imp_uint8(d);
967
+ return *this;
968
+ }
969
+
970
+ template <typename Stream>
971
+ inline packer<Stream>& packer<Stream>::pack_unsigned_short(unsigned short d)
972
+ {
973
+ #if defined(SIZEOF_SHORT)
974
+ #if SIZEOF_SHORT == 2
975
+ pack_imp_uint16(d);
976
+ #elif SIZEOF_SHORT == 4
977
+ pack_imp_uint32(d);
978
+ #else
979
+ pack_imp_uint64(d);
980
+ #endif
981
+
982
+ #elif defined(USHRT_MAX)
983
+ #if USHRT_MAX == 0xffffU
984
+ pack_imp_uint16(d);
985
+ #elif USHRT_MAX == 0xffffffffU
986
+ pack_imp_uint32(d);
987
+ #else
988
+ pack_imp_uint64(d);
989
+ #endif
990
+
991
+ #else
992
+ if(sizeof(unsigned short) == 2) {
993
+ pack_imp_uint16(d);
994
+ } else if(sizeof(unsigned short) == 4) {
995
+ pack_imp_uint32(d);
996
+ } else {
997
+ pack_imp_uint64(d);
998
+ }
999
+ #endif
1000
+ return *this;
1001
+ }
1002
+
1003
+ template <typename Stream>
1004
+ inline packer<Stream>& packer<Stream>::pack_unsigned_int(unsigned int d)
1005
+ {
1006
+ #if defined(SIZEOF_INT)
1007
+ #if SIZEOF_INT == 2
1008
+ pack_imp_uint16(d);
1009
+ #elif SIZEOF_INT == 4
1010
+ pack_imp_uint32(d);
1011
+ #else
1012
+ pack_imp_uint64(d);
1013
+ #endif
1014
+
1015
+ #elif defined(UINT_MAX)
1016
+ #if UINT_MAX == 0xffffU
1017
+ pack_imp_uint16(d);
1018
+ #elif UINT_MAX == 0xffffffffU
1019
+ pack_imp_uint32(d);
1020
+ #else
1021
+ pack_imp_uint64(d);
1022
+ #endif
1023
+
1024
+ #else
1025
+ if(sizeof(unsigned int) == 2) {
1026
+ pack_imp_uint16(d);
1027
+ } else if(sizeof(unsigned int) == 4) {
1028
+ pack_imp_uint32(d);
1029
+ } else {
1030
+ pack_imp_uint64(d);
1031
+ }
1032
+ #endif
1033
+ return *this;
1034
+ }
1035
+
1036
+ template <typename Stream>
1037
+ inline packer<Stream>& packer<Stream>::pack_unsigned_long(unsigned long d)
1038
+ {
1039
+ #if defined(SIZEOF_LONG)
1040
+ #if SIZEOF_LONG == 2
1041
+ pack_imp_uint16(d);
1042
+ #elif SIZEOF_LONG == 4
1043
+ pack_imp_uint32(d);
1044
+ #else
1045
+ pack_imp_uint64(d);
1046
+ #endif
1047
+
1048
+ #elif defined(ULONG_MAX)
1049
+ #if ULONG_MAX == 0xffffUL
1050
+ pack_imp_uint16(d);
1051
+ #elif ULONG_MAX == 0xffffffffUL
1052
+ pack_imp_uint32(d);
1053
+ #else
1054
+ pack_imp_uint64(d);
1055
+ #endif
1056
+
1057
+ #else
1058
+ if(sizeof(unsigned long) == 2) {
1059
+ pack_imp_uint16(d);
1060
+ } else if(sizeof(unsigned long) == 4) {
1061
+ pack_imp_uint32(d);
1062
+ } else {
1063
+ pack_imp_uint64(d);
1064
+ }
1065
+ #endif
1066
+ return *this;
1067
+ }
1068
+
1069
+ template <typename Stream>
1070
+ inline packer<Stream>& packer<Stream>::pack_unsigned_long_long(unsigned long long d)
1071
+ {
1072
+ #if defined(SIZEOF_LONG_LONG)
1073
+ #if SIZEOF_LONG_LONG == 2
1074
+ pack_imp_uint16(d);
1075
+ #elif SIZEOF_LONG_LONG == 4
1076
+ pack_imp_uint32(d);
1077
+ #else
1078
+ pack_imp_uint64(d);
1079
+ #endif
1080
+
1081
+ #elif defined(ULLONG_MAX)
1082
+ #if ULLONG_MAX == 0xffffUL
1083
+ pack_imp_uint16(d);
1084
+ #elif ULLONG_MAX == 0xffffffffUL
1085
+ pack_imp_uint32(d);
1086
+ #else
1087
+ pack_imp_uint64(d);
1088
+ #endif
1089
+
1090
+ #else
1091
+ if(sizeof(unsigned long long) == 2) {
1092
+ pack_imp_uint16(d);
1093
+ } else if(sizeof(unsigned long long) == 4) {
1094
+ pack_imp_uint32(d);
1095
+ } else {
1096
+ pack_imp_uint64(d);
1097
+ }
1098
+ #endif
1099
+ return *this;
1100
+ }
1101
+
1102
+
1103
+ template <typename Stream>
1104
+ inline packer<Stream>& packer<Stream>::pack_float(float d)
1105
+ {
1106
+ union { float f; uint32_t i; } mem;
1107
+ mem.f = d;
1108
+ char buf[5];
1109
+ buf[0] = static_cast<char>(0xcau); _msgpack_store32(&buf[1], mem.i);
1110
+ append_buffer(buf, 5);
1111
+ return *this;
1112
+ }
1113
+
1114
+ template <typename Stream>
1115
+ inline packer<Stream>& packer<Stream>::pack_double(double d)
1116
+ {
1117
+ union { double f; uint64_t i; } mem;
1118
+ mem.f = d;
1119
+ char buf[9];
1120
+ buf[0] = static_cast<char>(0xcbu);
1121
+
1122
+ #if defined(TARGET_OS_IPHONE)
1123
+ // ok
1124
+ #elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi
1125
+ // https://github.com/msgpack/msgpack-perl/pull/1
1126
+ mem.i = (mem.i & 0xFFFFFFFFUL) << 32UL | (mem.i >> 32UL);
1127
+ #endif
1128
+ _msgpack_store64(&buf[1], mem.i);
1129
+ append_buffer(buf, 9);
1130
+ return *this;
1131
+ }
1132
+
1133
+
1134
+ template <typename Stream>
1135
+ inline packer<Stream>& packer<Stream>::pack_nil()
1136
+ {
1137
+ const char d = static_cast<char>(0xc0u);
1138
+ append_buffer(&d, 1);
1139
+ return *this;
1140
+ }
1141
+
1142
+ template <typename Stream>
1143
+ inline packer<Stream>& packer<Stream>::pack_true()
1144
+ {
1145
+ const char d = static_cast<char>(0xc3u);
1146
+ append_buffer(&d, 1);
1147
+ return *this;
1148
+ }
1149
+
1150
+ template <typename Stream>
1151
+ inline packer<Stream>& packer<Stream>::pack_false()
1152
+ {
1153
+ const char d = static_cast<char>(0xc2u);
1154
+ append_buffer(&d, 1);
1155
+ return *this;
1156
+ }
1157
+
1158
+
1159
+ template <typename Stream>
1160
+ inline packer<Stream>& packer<Stream>::pack_array(uint32_t n)
1161
+ {
1162
+ if(n < 16) {
1163
+ char d = static_cast<char>(0x90u | n);
1164
+ append_buffer(&d, 1);
1165
+ } else if(n < 65536) {
1166
+ char buf[3];
1167
+ buf[0] = static_cast<char>(0xdcu); _msgpack_store16(&buf[1], static_cast<uint16_t>(n));
1168
+ append_buffer(buf, 3);
1169
+ } else {
1170
+ char buf[5];
1171
+ buf[0] = static_cast<char>(0xddu); _msgpack_store32(&buf[1], static_cast<uint32_t>(n));
1172
+ append_buffer(buf, 5);
1173
+ }
1174
+ return *this;
1175
+ }
1176
+
1177
+ template <typename Stream>
1178
+ inline packer<Stream>& packer<Stream>::pack_map(uint32_t n)
1179
+ {
1180
+ if(n < 16) {
1181
+ unsigned char d = static_cast<unsigned char>(0x80u | n);
1182
+ char buf = take8_8(d);
1183
+ append_buffer(&buf, 1);
1184
+ } else if(n < 65536) {
1185
+ char buf[3];
1186
+ buf[0] = static_cast<char>(0xdeu); _msgpack_store16(&buf[1], static_cast<uint16_t>(n));
1187
+ append_buffer(buf, 3);
1188
+ } else {
1189
+ char buf[5];
1190
+ buf[0] = static_cast<char>(0xdfu); _msgpack_store32(&buf[1], static_cast<uint32_t>(n));
1191
+ append_buffer(buf, 5);
1192
+ }
1193
+ return *this;
1194
+ }
1195
+
1196
+ template <typename Stream>
1197
+ inline packer<Stream>& packer<Stream>::pack_str(uint32_t l)
1198
+ {
1199
+ if(l < 32) {
1200
+ unsigned char d = static_cast<uint8_t>(0xa0u | l);
1201
+ char buf = take8_8(d);
1202
+ append_buffer(&buf, 1);
1203
+ } else if(l < 256) {
1204
+ char buf[2];
1205
+ buf[0] = static_cast<char>(0xd9u); buf[1] = static_cast<uint8_t>(l);
1206
+ append_buffer(buf, 2);
1207
+ } else if(l < 65536) {
1208
+ char buf[3];
1209
+ buf[0] = static_cast<char>(0xdau); _msgpack_store16(&buf[1], static_cast<uint16_t>(l));
1210
+ append_buffer(buf, 3);
1211
+ } else {
1212
+ char buf[5];
1213
+ buf[0] = static_cast<char>(0xdbu); _msgpack_store32(&buf[1], static_cast<uint32_t>(l));
1214
+ append_buffer(buf, 5);
1215
+ }
1216
+ return *this;
1217
+ }
1218
+
1219
+ template <typename Stream>
1220
+ inline packer<Stream>& packer<Stream>::pack_str_body(const char* b, uint32_t l)
1221
+ {
1222
+ append_buffer(b, l);
1223
+ return *this;
1224
+ }
1225
+
1226
+ // Raw (V4)
1227
+
1228
+ template <typename Stream>
1229
+ inline packer<Stream>& packer<Stream>::pack_v4raw(uint32_t l)
1230
+ {
1231
+ if(l < 32) {
1232
+ unsigned char d = static_cast<uint8_t>(0xa0u | l);
1233
+ char buf = take8_8(d);
1234
+ append_buffer(&buf, 1);
1235
+ } else if(l < 65536) {
1236
+ char buf[3];
1237
+ buf[0] = static_cast<char>(0xdau); _msgpack_store16(&buf[1], static_cast<uint16_t>(l));
1238
+ append_buffer(buf, 3);
1239
+ } else {
1240
+ char buf[5];
1241
+ buf[0] = static_cast<char>(0xdbu); _msgpack_store32(&buf[1], static_cast<uint32_t>(l));
1242
+ append_buffer(buf, 5);
1243
+ }
1244
+ return *this;
1245
+ }
1246
+
1247
+ template <typename Stream>
1248
+ inline packer<Stream>& packer<Stream>::pack_v4raw_body(const char* b, uint32_t l)
1249
+ {
1250
+ append_buffer(b, l);
1251
+ return *this;
1252
+ }
1253
+
1254
+ template <typename Stream>
1255
+ inline packer<Stream>& packer<Stream>::pack_bin(uint32_t l)
1256
+ {
1257
+ if(l < 256) {
1258
+ char buf[2];
1259
+ buf[0] = static_cast<char>(0xc4u); buf[1] = static_cast<uint8_t>(l);
1260
+ append_buffer(buf, 2);
1261
+ } else if(l < 65536) {
1262
+ char buf[3];
1263
+ buf[0] = static_cast<char>(0xc5u); _msgpack_store16(&buf[1], static_cast<uint16_t>(l));
1264
+ append_buffer(buf, 3);
1265
+ } else {
1266
+ char buf[5];
1267
+ buf[0] = static_cast<char>(0xc6u); _msgpack_store32(&buf[1], static_cast<uint32_t>(l));
1268
+ append_buffer(buf, 5);
1269
+ }
1270
+ return *this;
1271
+ }
1272
+
1273
+ template <typename Stream>
1274
+ inline packer<Stream>& packer<Stream>::pack_bin_body(const char* b, uint32_t l)
1275
+ {
1276
+ append_buffer(b, l);
1277
+ return *this;
1278
+ }
1279
+
1280
+ template <typename Stream>
1281
+ inline packer<Stream>& packer<Stream>::pack_ext(size_t l, int8_t type)
1282
+ {
1283
+ switch(l) {
1284
+ case 1: {
1285
+ char buf[2];
1286
+ buf[0] = static_cast<char>(0xd4u);
1287
+ buf[1] = static_cast<char>(type);
1288
+ append_buffer(buf, 2);
1289
+ } break;
1290
+ case 2: {
1291
+ char buf[2];
1292
+ buf[0] = static_cast<char>(0xd5u);
1293
+ buf[1] = static_cast<char>(type);
1294
+ append_buffer(buf, 2);
1295
+ } break;
1296
+ case 4: {
1297
+ char buf[2];
1298
+ buf[0] = static_cast<char>(0xd6u);
1299
+ buf[1] = static_cast<char>(type);
1300
+ append_buffer(buf, 2);
1301
+ } break;
1302
+ case 8: {
1303
+ char buf[2];
1304
+ buf[0] = static_cast<char>(0xd7u);
1305
+ buf[1] = static_cast<char>(type);
1306
+ append_buffer(buf, 2);
1307
+ } break;
1308
+ case 16: {
1309
+ char buf[2];
1310
+ buf[0] = static_cast<char>(0xd8u);
1311
+ buf[1] = static_cast<char>(type);
1312
+ append_buffer(buf, 2);
1313
+ } break;
1314
+ default:
1315
+ if(l < 256) {
1316
+ char buf[3];
1317
+ buf[0] = static_cast<char>(0xc7u);
1318
+ buf[1] = static_cast<char>(l);
1319
+ buf[2] = static_cast<char>(type);
1320
+ append_buffer(buf, 3);
1321
+ } else if(l < 65536) {
1322
+ char buf[4];
1323
+ buf[0] = static_cast<char>(0xc8u);
1324
+ _msgpack_store16(&buf[1], static_cast<uint16_t>(l));
1325
+ buf[3] = static_cast<char>(type);
1326
+ append_buffer(buf, 4);
1327
+ } else {
1328
+ char buf[6];
1329
+ buf[0] = static_cast<char>(0xc9u);
1330
+ _msgpack_store32(&buf[1], static_cast<uint32_t>(l));
1331
+ buf[5] = static_cast<char>(type);
1332
+ append_buffer(buf, 6);
1333
+ }
1334
+ break;
1335
+ }
1336
+ return *this;
1337
+ }
1338
+
1339
+ template <typename Stream>
1340
+ inline packer<Stream>& packer<Stream>::pack_ext_body(const char* b, uint32_t l)
1341
+ {
1342
+ append_buffer(b, l);
1343
+ return *this;
1344
+ }
1345
+
1346
+ template <typename Stream>
1347
+ template <typename T>
1348
+ inline void packer<Stream>::pack_imp_uint8(T d)
1349
+ {
1350
+ if(d < (1<<7)) {
1351
+ /* fixnum */
1352
+ char buf = take8_8(d);
1353
+ append_buffer(&buf, 1);
1354
+ } else {
1355
+ /* unsigned 8 */
1356
+ char buf[2] = {static_cast<char>(0xccu), take8_8(d)};
1357
+ append_buffer(buf, 2);
1358
+ }
1359
+ }
1360
+
1361
+ template <typename Stream>
1362
+ template <typename T>
1363
+ inline void packer<Stream>::pack_imp_uint16(T d)
1364
+ {
1365
+ if(d < (1<<7)) {
1366
+ /* fixnum */
1367
+ char buf = take8_16(d);
1368
+ append_buffer(&buf, 1);
1369
+ } else if(d < (1<<8)) {
1370
+ /* unsigned 8 */
1371
+ char buf[2] = {static_cast<char>(0xccu), take8_16(d)};
1372
+ append_buffer(buf, 2);
1373
+ } else {
1374
+ /* unsigned 16 */
1375
+ char buf[3];
1376
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1377
+ append_buffer(buf, 3);
1378
+ }
1379
+ }
1380
+
1381
+ template <typename Stream>
1382
+ template <typename T>
1383
+ inline void packer<Stream>::pack_imp_uint32(T d)
1384
+ {
1385
+ if(d < (1<<8)) {
1386
+ if(d < (1<<7)) {
1387
+ /* fixnum */
1388
+ char buf = take8_32(d);
1389
+ append_buffer(&buf, 1);
1390
+ } else {
1391
+ /* unsigned 8 */
1392
+ char buf[2] = {static_cast<char>(0xccu), take8_32(d)};
1393
+ append_buffer(buf, 2);
1394
+ }
1395
+ } else {
1396
+ if(d < (1<<16)) {
1397
+ /* unsigned 16 */
1398
+ char buf[3];
1399
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1400
+ append_buffer(buf, 3);
1401
+ } else {
1402
+ /* unsigned 32 */
1403
+ char buf[5];
1404
+ buf[0] = static_cast<char>(0xceu); _msgpack_store32(&buf[1], static_cast<uint32_t>(d));
1405
+ append_buffer(buf, 5);
1406
+ }
1407
+ }
1408
+ }
1409
+
1410
+ template <typename Stream>
1411
+ template <typename T>
1412
+ inline void packer<Stream>::pack_imp_uint64(T d)
1413
+ {
1414
+ if(d < (1ULL<<8)) {
1415
+ if(d < (1ULL<<7)) {
1416
+ /* fixnum */
1417
+ char buf = take8_64(d);
1418
+ append_buffer(&buf, 1);
1419
+ } else {
1420
+ /* unsigned 8 */
1421
+ char buf[2] = {static_cast<char>(0xccu), take8_64(d)};
1422
+ append_buffer(buf, 2);
1423
+ }
1424
+ } else {
1425
+ if(d < (1ULL<<16)) {
1426
+ /* unsigned 16 */
1427
+ char buf[3];
1428
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1429
+ append_buffer(buf, 3);
1430
+ } else if(d < (1ULL<<32)) {
1431
+ /* unsigned 32 */
1432
+ char buf[5];
1433
+ buf[0] = static_cast<char>(0xceu); _msgpack_store32(&buf[1], static_cast<uint32_t>(d));
1434
+ append_buffer(buf, 5);
1435
+ } else {
1436
+ /* unsigned 64 */
1437
+ char buf[9];
1438
+ buf[0] = static_cast<char>(0xcfu); _msgpack_store64(&buf[1], d);
1439
+ append_buffer(buf, 9);
1440
+ }
1441
+ }
1442
+ }
1443
+
1444
+ template <typename Stream>
1445
+ template <typename T>
1446
+ inline void packer<Stream>::pack_imp_int8(T d)
1447
+ {
1448
+ if(d < -(1<<5)) {
1449
+ /* signed 8 */
1450
+ char buf[2] = {static_cast<char>(0xd0u), take8_8(d)};
1451
+ append_buffer(buf, 2);
1452
+ } else {
1453
+ /* fixnum */
1454
+ char buf = take8_8(d);
1455
+ append_buffer(&buf, 1);
1456
+ }
1457
+ }
1458
+
1459
+ template <typename Stream>
1460
+ template <typename T>
1461
+ inline void packer<Stream>::pack_imp_int16(T d)
1462
+ {
1463
+ if(d < -(1<<5)) {
1464
+ if(d < -(1<<7)) {
1465
+ /* signed 16 */
1466
+ char buf[3];
1467
+ buf[0] = static_cast<char>(0xd1u); _msgpack_store16(&buf[1], static_cast<int16_t>(d));
1468
+ append_buffer(buf, 3);
1469
+ } else {
1470
+ /* signed 8 */
1471
+ char buf[2] = {static_cast<char>(0xd0u), take8_16(d)};
1472
+ append_buffer(buf, 2);
1473
+ }
1474
+ } else if(d < (1<<7)) {
1475
+ /* fixnum */
1476
+ char buf = take8_16(d);
1477
+ append_buffer(&buf, 1);
1478
+ } else {
1479
+ if(d < (1<<8)) {
1480
+ /* unsigned 8 */
1481
+ char buf[2] = {static_cast<char>(0xccu), take8_16(d)};
1482
+ append_buffer(buf, 2);
1483
+ } else {
1484
+ /* unsigned 16 */
1485
+ char buf[3];
1486
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1487
+ append_buffer(buf, 3);
1488
+ }
1489
+ }
1490
+ }
1491
+
1492
+ template <typename Stream>
1493
+ template <typename T>
1494
+ inline void packer<Stream>::pack_imp_int32(T d)
1495
+ {
1496
+ if(d < -(1<<5)) {
1497
+ if(d < -(1<<15)) {
1498
+ /* signed 32 */
1499
+ char buf[5];
1500
+ buf[0] = static_cast<char>(0xd2u); _msgpack_store32(&buf[1], static_cast<int32_t>(d));
1501
+ append_buffer(buf, 5);
1502
+ } else if(d < -(1<<7)) {
1503
+ /* signed 16 */
1504
+ char buf[3];
1505
+ buf[0] = static_cast<char>(0xd1u); _msgpack_store16(&buf[1], static_cast<int16_t>(d));
1506
+ append_buffer(buf, 3);
1507
+ } else {
1508
+ /* signed 8 */
1509
+ char buf[2] = { static_cast<char>(0xd0u), take8_32(d)};
1510
+ append_buffer(buf, 2);
1511
+ }
1512
+ } else if(d < (1<<7)) {
1513
+ /* fixnum */
1514
+ char buf = take8_32(d);
1515
+ append_buffer(&buf, 1);
1516
+ } else {
1517
+ if(d < (1<<8)) {
1518
+ /* unsigned 8 */
1519
+ char buf[2] = { static_cast<char>(0xccu), take8_32(d)};
1520
+ append_buffer(buf, 2);
1521
+ } else if(d < (1<<16)) {
1522
+ /* unsigned 16 */
1523
+ char buf[3];
1524
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1525
+ append_buffer(buf, 3);
1526
+ } else {
1527
+ /* unsigned 32 */
1528
+ char buf[5];
1529
+ buf[0] = static_cast<char>(0xceu); _msgpack_store32(&buf[1], static_cast<uint32_t>(d));
1530
+ append_buffer(buf, 5);
1531
+ }
1532
+ }
1533
+ }
1534
+
1535
+ template <typename Stream>
1536
+ template <typename T>
1537
+ inline void packer<Stream>::pack_imp_int64(T d)
1538
+ {
1539
+ if(d < -(1LL<<5)) {
1540
+ if(d < -(1LL<<15)) {
1541
+ if(d < -(1LL<<31)) {
1542
+ /* signed 64 */
1543
+ char buf[9];
1544
+ buf[0] = static_cast<char>(0xd3u); _msgpack_store64(&buf[1], d);
1545
+ append_buffer(buf, 9);
1546
+ } else {
1547
+ /* signed 32 */
1548
+ char buf[5];
1549
+ buf[0] = static_cast<char>(0xd2u); _msgpack_store32(&buf[1], static_cast<int32_t>(d));
1550
+ append_buffer(buf, 5);
1551
+ }
1552
+ } else {
1553
+ if(d < -(1<<7)) {
1554
+ /* signed 16 */
1555
+ char buf[3];
1556
+ buf[0] = static_cast<char>(0xd1u); _msgpack_store16(&buf[1], static_cast<int16_t>(d));
1557
+ append_buffer(buf, 3);
1558
+ } else {
1559
+ /* signed 8 */
1560
+ char buf[2] = {static_cast<char>(0xd0u), take8_64(d)};
1561
+ append_buffer(buf, 2);
1562
+ }
1563
+ }
1564
+ } else if(d < (1<<7)) {
1565
+ /* fixnum */
1566
+ char buf = take8_64(d);
1567
+ append_buffer(&buf, 1);
1568
+ } else {
1569
+ if(d < (1LL<<16)) {
1570
+ if(d < (1<<8)) {
1571
+ /* unsigned 8 */
1572
+ char buf[2] = {static_cast<char>(0xccu), take8_64(d)};
1573
+ append_buffer(buf, 2);
1574
+ } else {
1575
+ /* unsigned 16 */
1576
+ char buf[3];
1577
+ buf[0] = static_cast<char>(0xcdu); _msgpack_store16(&buf[1], static_cast<uint16_t>(d));
1578
+ append_buffer(buf, 3);
1579
+ }
1580
+ } else {
1581
+ if(d < (1LL<<32)) {
1582
+ /* unsigned 32 */
1583
+ char buf[5];
1584
+ buf[0] = static_cast<char>(0xceu); _msgpack_store32(&buf[1], static_cast<uint32_t>(d));
1585
+ append_buffer(buf, 5);
1586
+ } else {
1587
+ /* unsigned 64 */
1588
+ char buf[9];
1589
+ buf[0] = static_cast<char>(0xcfu); _msgpack_store64(&buf[1], d);
1590
+ append_buffer(buf, 9);
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+
1596
+ /// @cond
1597
+ } // MSGPACK_API_VERSION_NAMESPACE(v1)
1598
+ /// @endcond
1599
+
1600
+ } // namespace msgpack
1601
+
1602
+ #endif // MSGPACK_V1_PACK_HPP