Home
last modified time | relevance | path

Searched refs:array_bytes (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/utils/java/
Dstring_utils.cc25 jbyte* const array_bytes = env->GetByteArrayElements(array, JNI_FALSE); in JByteArrayToString() local
26 if (array_bytes == nullptr) { in JByteArrayToString()
31 *result = std::string(reinterpret_cast<char*>(array_bytes), array_length); in JByteArrayToString()
33 env->ReleaseByteArrayElements(array, array_bytes, JNI_ABORT); in JByteArrayToString()
/external/protobuf/php/ext/google/protobuf/
Dupb.c4463 size_t array_bytes; in upb_inttable_sizedinit() local
4470 array_bytes = t->array_size * sizeof(upb_value); in upb_inttable_sizedinit()
4471 t->array = malloc(array_bytes); in upb_inttable_sizedinit()
4476 memset(mutable_array(t), 0xff, array_bytes); in upb_inttable_sizedinit()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c4710 size_t array_bytes; in upb_inttable_sizedinit() local
4717 array_bytes = t->array_size * sizeof(upb_value); in upb_inttable_sizedinit()
4718 t->array = upb_malloc(a, array_bytes); in upb_inttable_sizedinit()
4723 memset(mutable_array(t), 0xff, array_bytes); in upb_inttable_sizedinit()