Home
last modified time | relevance | path

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

/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dwriter.h28 void write(const T *objs, std::size_t num_objs) { in write() argument
29 MARISA_ALPHA_THROW_IF((objs == NULL) && (num_objs != 0), in write()
31 MARISA_ALPHA_THROW_IF(num_objs > (MARISA_ALPHA_UINT32_MAX / sizeof(T)), in write()
33 if (num_objs != 0) { in write()
34 write_data(objs, sizeof(T) * num_objs); in write()
Dreader.h28 void read(T *objs, std::size_t num_objs) { in read() argument
29 MARISA_ALPHA_THROW_IF((objs == NULL) && (num_objs != 0), in read()
31 MARISA_ALPHA_THROW_IF(num_objs > (MARISA_ALPHA_UINT32_MAX / sizeof(T)), in read()
33 if (num_objs != 0) { in read()
34 read_data(objs, sizeof(T) * num_objs); in read()
Dmapper.h25 void map(const T **objs, std::size_t num_objs) { in map() argument
26 MARISA_ALPHA_THROW_IF((objs == NULL) && (num_objs != 0), in map()
28 MARISA_ALPHA_THROW_IF(num_objs > (MARISA_ALPHA_UINT32_MAX / sizeof(T)), in map()
30 *objs = static_cast<const T *>(map_data(sizeof(T) * num_objs)); in map()
/external/marisa-trie/lib/marisa/
Dreader.h28 void read(T *objs, std::size_t num_objs) { in read() argument
29 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in read()
30 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in read()
32 if (num_objs != 0) { in read()
33 read_data(objs, sizeof(T) * num_objs); in read()
Dwriter.h28 void write(const T *objs, std::size_t num_objs) { in write() argument
29 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in write()
30 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in write()
32 if (num_objs != 0) { in write()
33 write_data(objs, sizeof(T) * num_objs); in write()
Dmapper.h25 void map(const T **objs, std::size_t num_objs) { in map() argument
26 MARISA_THROW_IF((objs == NULL) && (num_objs != 0), MARISA_PARAM_ERROR); in map()
27 MARISA_THROW_IF(num_objs > (MARISA_UINT32_MAX / sizeof(T)), in map()
29 *objs = static_cast<const T *>(map_data(sizeof(T) * num_objs)); in map()