MCPcopy Create free account
hub / github.com/apache/arrow / WritePadding

Function WritePadding

cpp/src/arrow/ipc/message.cc:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73Status WritePadding(io::OutputStream* stream, int64_t nbytes) {
74 while (nbytes > 0) {
75 const int64_t bytes_to_write = std::min<int64_t>(nbytes, kArrowAlignment);
76 RETURN_NOT_OK(stream->Write(kPaddingBytes, bytes_to_write));
77 nbytes -= bytes_to_write;
78 }
79 return Status::OK();
80}
81
82} // namespace
83

Callers 1

SerializeToMethod · 0.85

Calls 2

OKFunction · 0.50
WriteMethod · 0.45

Tested by

no test coverage detected