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

Method process

libminifi/src/utils/FileOutputCallback.cpp:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace utils {
28
29int64_t FileOutputCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
30 if (stream->size() > 0) {
31 file_stream_.write(reinterpret_cast<char*>(const_cast<uint8_t*>(stream->getBuffer())), stream->size());
32 size_ += stream->size();
33 }
34 return size_.load();
35}
36
37const std::vector<char> FileOutputCallback::to_string() {
38 std::vector<char> buffer;

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
writeMethod · 0.45
getBufferMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected