• Home
  • Raw
  • Download

Lines Matching refs:flatbuf

180                 std::vector<uint8_t> *flatbuf,  in ResizeContext()  argument
183 startptr_(vector_data(*flatbuf) + start), in ResizeContext()
185 buf_(*flatbuf), in ResizeContext()
186 dag_check_(flatbuf->size() / sizeof(uoffset_t), false) { in ResizeContext()
310 const String *str, std::vector<uint8_t> *flatbuf, in SetString() argument
314 reinterpret_cast<const uint8_t *>(str) - vector_data(*flatbuf)); in SetString()
318 memset(vector_data(*flatbuf) + start, 0, str->size()); in SetString()
320 ResizeContext(schema, start, delta, flatbuf, root_table); in SetString()
322 WriteScalar(vector_data(*flatbuf) + str_start, in SetString()
326 memcpy(vector_data(*flatbuf) + start, val.c_str(), val.size() + 1); in SetString()
331 uoffset_t elem_size, std::vector<uint8_t> *flatbuf, in ResizeAnyVector() argument
336 reinterpret_cast<const uint8_t *>(vec) - vector_data(*flatbuf); in ResizeAnyVector()
344 memset(vector_data(*flatbuf) + start - size_clear, 0, size_clear); in ResizeAnyVector()
346 ResizeContext(schema, start, delta_bytes, flatbuf, root_table); in ResizeAnyVector()
347 WriteScalar(vector_data(*flatbuf) + vec_start, newsize); // Length field. in ResizeAnyVector()
350 memset(vector_data(*flatbuf) + start, 0, delta_elem * elem_size); in ResizeAnyVector()
353 return vector_data(*flatbuf) + start; in ResizeAnyVector()
356 const uint8_t *AddFlatBuffer(std::vector<uint8_t> &flatbuf, in AddFlatBuffer() argument
360 while ((flatbuf.size() & (sizeof(uoffset_t) - 1)) || in AddFlatBuffer()
361 !(flatbuf.size() & (sizeof(largest_scalar_t) - 1))) { in AddFlatBuffer()
362 flatbuf.push_back(0); in AddFlatBuffer()
364 auto insertion_point = static_cast<uoffset_t>(flatbuf.size()); in AddFlatBuffer()
366 flatbuf.insert(flatbuf.end(), newbuf + sizeof(uoffset_t), newbuf + newlen); in AddFlatBuffer()
368 return vector_data(flatbuf) + insertion_point + root_offset; in AddFlatBuffer()