vox-etf 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/vox/encoder.hpp +9 -1
- data/lib/vox/etf/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23e933f7516643febe38cf5e2d8ee5e9f1ab3fe68ff1fb6dd97c6fa62ff9aa4f
|
4
|
+
data.tar.gz: 84aba301392e4726c27d60be188965cd0657cf312a89e839e315b6a02992c023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8772aad812bc659a49137e275e369c91dc32923f1ebb1dbbd596bdbc5b9d63d325f0d62cc8379e3dc7d050d4ed2e6112aee88437923b6fcef92b963668596af5
|
7
|
+
data.tar.gz: bcf8b1923f65051c018c092d41e797d3dd4760dce007f5e82dd63a2b139214009c658ee96a508c0aedb245c43dde931bb0b09841684f9173f3c9e96f4d9e217c
|
data/ext/vox/encoder.hpp
CHANGED
@@ -137,12 +137,20 @@ namespace etf
|
|
137
137
|
|
138
138
|
void encode_array(VALUE array)
|
139
139
|
{
|
140
|
-
erlpack_append_list_header(erl_buff, RARRAY_LEN(array));
|
141
140
|
uint32_t size = RARRAY_LEN(array);
|
141
|
+
if (size == 0)
|
142
|
+
{
|
143
|
+
erlpack_append_nil_ext(erl_buff);
|
144
|
+
return;
|
145
|
+
}
|
146
|
+
|
147
|
+
erlpack_append_list_header(erl_buff, size);
|
142
148
|
for (uint32_t index = 0; index < size; index++)
|
143
149
|
{
|
144
150
|
encode_object(RARRAY_AREF(array, index));
|
145
151
|
}
|
152
|
+
|
153
|
+
erlpack_append_nil_ext(erl_buff);
|
146
154
|
}
|
147
155
|
|
148
156
|
void encode_symbol(VALUE symbol)
|
data/lib/vox/etf/version.rb
CHANGED