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

Method CopyFromAnyView

include/tvm/ffi/string.h:241–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 TVMFFIAny CopyToTVMFFIAny() const { return data_; }
240
241 static BytesBaseCell CopyFromAnyView(const TVMFFIAny* src) {
242 BytesBaseCell result(*src);
243 if (result.data_.type_index >= TypeIndex::kTVMFFIStaticObjectBegin) {
244 details::ObjectUnsafe::IncRefObjectHandle(result.data_.v_obj);
245 }
246 return result;
247 }
248
249 static BytesBaseCell MoveFromAny(TVMFFIAny* src) {
250 BytesBaseCell result(*src);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected