Home
last modified time | relevance | path

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

/external/minijail/
Dlibminijail_unittest.cc38 void *consumebytes(size_t length, char **buf, size_t *buflength);
49 TEST(consumebytes, zero) { in TEST() argument
53 EXPECT_NE(nullptr, consumebytes(0, &pos, &len)); in TEST()
58 TEST(consumebytes, exact) { in TEST() argument
64 EXPECT_NE(nullptr, consumebytes(len, &pos, &len)); in TEST()
69 TEST(consumebytes, half) { in TEST() argument
75 EXPECT_NE(nullptr, consumebytes(len / 2, &pos, &len)); in TEST()
80 TEST(consumebytes, toolong) { in TEST() argument
85 EXPECT_EQ(nullptr, consumebytes(len + 1, &pos, &len)); in TEST()
Dutil.c283 void *consumebytes(size_t length, char **buf, size_t *buflength) in consumebytes() function
299 return consumebytes(len + 1, buf, buflength); in consumestr()
Dutil.h80 void *consumebytes(size_t length, char **buf, size_t *buflength);
Dlibminijail.c997 consumebytes(gid_list_size, &serialized, &length); in minijail_unmarshal()
1042 void *program = consumebytes(program_len, &serialized, &length); in minijail_unmarshal()
1075 has_data = consumebytes(sizeof(*has_data), &serialized, in minijail_unmarshal()
1084 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()