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

Function TVMFFIBytesFromByteArray

src/ffi/object.cc:612–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612int TVMFFIBytesFromByteArray(const TVMFFIByteArray* input, TVMFFIAny* out) {
613 TVM_FFI_SAFE_CALL_BEGIN();
614 // must set to none first
615 out->type_index = kTVMFFINone;
616 tvm::ffi::TypeTraits<tvm::ffi::Bytes>::MoveToAny(tvm::ffi::Bytes(input->data, input->size), out);
617 TVM_FFI_SAFE_CALL_END();
618}
619
620namespace {
621TVM_FFI_STATIC_INIT_BLOCK() {

Callers

nothing calls this directly

Calls 1

BytesClass · 0.50

Tested by

no test coverage detected