* Creates a flow file record * @param file file to place into the flow file. */
| 239 | * @param file file to place into the flow file. |
| 240 | */ |
| 241 | flow_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 |
no test coverage detected