MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / create_flowfile

Function create_flowfile

nanofi/src/api/nanofi.cpp:241–246  ·  view source on GitHub ↗

* Creates a flow file record * @param file file to place into the flow file. */

Source from the content-addressed store, hash-verified

239 * @param file file to place into the flow file.
240 */
241flow_file_record* create_flowfile(const char *file, const size_t len) {
242 NULL_CHECK(nullptr, file);
243 std::ifstream in(file, std::ifstream::ate | std::ifstream::binary);
244 uint64_t file_size = in.tellg();
245 return create_ff_object(file, len, file_size);
246}
247
248/**
249 * Creates a flow file record

Callers 2

mainFunction · 0.85

Calls 1

create_ff_objectFunction · 0.85

Tested by

no test coverage detected