MCPcopy Create free account
hub / github.com/apache/tvm-ffi / InitSpaceForSize

Method InitSpaceForSize

include/tvm/ffi/string.h:776–779  ·  view source on GitHub ↗

! * \brief Create a new empty space for a string * \param size The size of the string * \return A pointer to the empty space */

Source from the content-addressed store, hash-verified

774 * \return A pointer to the empty space
775 */
776 char* InitSpaceForSize(size_t size) {
777 return data_.InitSpaceForSize<details::StringObj>(size, TypeIndex::kTVMFFISmallStr,
778 TypeIndex::kTVMFFIStr);
779 }
780 void InitData(const char* data, size_t size) {
781 char* dest_data = InitSpaceForSize(size);
782 if (size > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected