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

Method BufferInStream

src/ffi/extra/buffer_stream.h:48–49  ·  view source on GitHub ↗

! * \brief constructor * \param p_buffer the head pointer of the memory region. * \param buffer_size the size of the memorybuffer */

Source from the content-addressed store, hash-verified

46 * \param buffer_size the size of the memorybuffer
47 */
48 BufferInStream(const void* data, size_t size)
49 : data_(reinterpret_cast<const char*>(data)), size_(size) {}
50 /*!
51 * \brief Reads raw from stream.
52 * \param ptr pointer to the data to be read

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected