Home
last modified time | relevance | path

Searched refs:consumebytes (Results 1 – 6 of 6) sorted by relevance

/external/minijail/
Dlibminijail_unittest.cc108 TEST(consumebytes, zero) { in TEST() argument
112 EXPECT_NE(nullptr, consumebytes(0, &pos, &len)); in TEST()
117 TEST(consumebytes, exact) { in TEST() argument
123 EXPECT_NE(nullptr, consumebytes(len, &pos, &len)); in TEST()
128 TEST(consumebytes, half) { in TEST() argument
134 EXPECT_NE(nullptr, consumebytes(len / 2, &pos, &len)); in TEST()
139 TEST(consumebytes, toolong) { in TEST() argument
144 EXPECT_EQ(nullptr, consumebytes(len + 1, &pos, &len)); in TEST()
Dutil.c440 void *consumebytes(size_t length, char **buf, size_t *buflength) in consumebytes() function
456 return consumebytes(len + 1, buf, buflength); in consumestr()
Dutil.h148 void *consumebytes(size_t length, char **buf, size_t *buflength);
Dlibminijail.c1179 consumebytes(gid_list_size, &serialized, &length); in minijail_unmarshal()
1224 void *program = consumebytes(program_len, &serialized, &length); in minijail_unmarshal()
1257 has_data = consumebytes(sizeof(*has_data), &serialized, in minijail_unmarshal()
1266 flags = consumebytes(sizeof(*flags), &serialized, &length); in minijail_unmarshal()
/external/protobuf/php/ext/google/protobuf/
Dupb.c7761 UPB_FORCEINLINE static void consumebytes(upb_pbdecoder *d, void *buf, in consumebytes() function
7774 consumebytes(d, buf, avail); in getbytes_slow()
7781 consumebytes(d, (char *)buf + avail, bytes); in getbytes_slow()
7798 consumebytes(d, buf, bytes); in getbytes()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c8473 UPB_FORCEINLINE static void consumebytes(upb_pbdecoder *d, void *buf, in consumebytes() function
8486 consumebytes(d, buf, avail); in getbytes_slow()
8493 consumebytes(d, (char *)buf + avail, bytes); in getbytes_slow()
8510 consumebytes(d, buf, bytes); in getbytes()