google-protobuf 3.17.3-universal-darwin → 3.18.1-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/convert.c +4 -5
- data/ext/google/protobuf_c/defs.c +26 -1326
- data/ext/google/protobuf_c/extconf.rb +0 -1
- data/ext/google/protobuf_c/message.c +1 -2
- data/ext/google/protobuf_c/repeated_field.c +1 -1
- data/ext/google/protobuf_c/ruby-upb.c +603 -290
- data/ext/google/protobuf_c/ruby-upb.h +420 -127
- data/lib/google/2.3/protobuf_c.bundle +0 -0
- data/lib/google/2.4/protobuf_c.bundle +0 -0
- data/lib/google/2.5/protobuf_c.bundle +0 -0
- data/lib/google/2.6/protobuf_c.bundle +0 -0
- data/lib/google/2.7/protobuf_c.bundle +0 -0
- data/lib/google/3.0/protobuf_c.bundle +0 -0
- data/lib/google/protobuf/api_pb.rb +2 -2
- data/lib/google/protobuf/descriptor_dsl.rb +458 -0
- data/lib/google/protobuf/descriptor_pb.rb +266 -0
- data/lib/google/protobuf/type_pb.rb +2 -2
- data/lib/google/protobuf.rb +1 -69
- data/tests/basic.rb +12 -0
- metadata +6 -5
- data/ext/google/protobuf_c/third_party/wyhash/wyhash.h +0 -145
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebfab344205c155665d81025584d75482ac968ff0d037df60687ba78b3ae6511
|
4
|
+
data.tar.gz: 4a4d4baf60defdd98dd206511eb337440073b3af82127638f60340f766915e3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c16e1ea1ff8c84b3346c19192ae53b4ec6597bb8092e638a5de6befb8870fc30a5fcd9c0d55e13bfdd493fa44370d7dc222fe9c5bbb33a213f9c42cd3d847e23
|
7
|
+
data.tar.gz: 03a513ec37f8c03937be81e3f590715dd21bd386a055159756fa2e13a1fa6aabb73a32d11dcde72e60e790fede8d97200da5ae49be9471384fefc31d26babd9f
|
@@ -41,7 +41,6 @@
|
|
41
41
|
|
42
42
|
#include "message.h"
|
43
43
|
#include "protobuf.h"
|
44
|
-
#include "third_party/wyhash/wyhash.h"
|
45
44
|
|
46
45
|
static upb_strview Convert_StringData(VALUE str, upb_arena *arena) {
|
47
46
|
upb_strview ret;
|
@@ -328,19 +327,19 @@ bool Msgval_IsEqual(upb_msgval val1, upb_msgval val2, TypeInfo type_info) {
|
|
328
327
|
uint64_t Msgval_GetHash(upb_msgval val, TypeInfo type_info, uint64_t seed) {
|
329
328
|
switch (type_info.type) {
|
330
329
|
case UPB_TYPE_BOOL:
|
331
|
-
return
|
330
|
+
return Wyhash(&val, 1, seed, kWyhashSalt);
|
332
331
|
case UPB_TYPE_FLOAT:
|
333
332
|
case UPB_TYPE_INT32:
|
334
333
|
case UPB_TYPE_UINT32:
|
335
334
|
case UPB_TYPE_ENUM:
|
336
|
-
return
|
335
|
+
return Wyhash(&val, 4, seed, kWyhashSalt);
|
337
336
|
case UPB_TYPE_DOUBLE:
|
338
337
|
case UPB_TYPE_INT64:
|
339
338
|
case UPB_TYPE_UINT64:
|
340
|
-
return
|
339
|
+
return Wyhash(&val, 8, seed, kWyhashSalt);
|
341
340
|
case UPB_TYPE_STRING:
|
342
341
|
case UPB_TYPE_BYTES:
|
343
|
-
return
|
342
|
+
return Wyhash(val.str_val.data, val.str_val.size, seed, kWyhashSalt);
|
344
343
|
case UPB_TYPE_MESSAGE:
|
345
344
|
return Message_Hash(val.msg_val, type_info.def.msgdef, seed);
|
346
345
|
default:
|