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

Method process

libminifi/src/utils/ByteArrayCallback.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31namespace utils {
32
33int64_t ByteOutputCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
34 stream->seek(0);
35 if (stream->size() > 0) {
36 std::unique_ptr<char> buffer = std::unique_ptr<char>(new char[stream->size()]);
37 readFully(buffer.get(), stream->size());
38 stream->read(reinterpret_cast<uint8_t*>(buffer.get()), gsl::narrow<int>(stream->size()));
39 return stream->size();
40 }
41 return size_.load();
42}
43
44int64_t StreamOutputCallback::process(const std::shared_ptr<io::BaseStream>& stream) {
45 stream->seek(0);

Callers

nothing calls this directly

Calls 6

seekMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45
readMethod · 0.45
loadMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected