MCPcopy Create free account
hub / github.com/bytedance/bolt / Write

Method Write

bolt/serializers/ArrowSerializer.cpp:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 ::arrow::Status Write(const void* data, int64_t nbytes) override {
125 if (closed_)
126 return ::arrow::Status::IOError("write on closed");
127 if (nbytes <= 0)
128 return ::arrow::Status::OK();
129 out_->write(
130 reinterpret_cast<const char*>(data),
131 static_cast<std::streamsize>(nbytes));
132 return ::arrow::Status::OK();
133 }
134
135 ::arrow::Status Write(const std::shared_ptr<::arrow::Buffer>& buf) override {
136 return Write(buf->data(), buf->size());

Callers 6

writeMethod · 0.45
CompressAndFlushMethod · 0.45
CompressInternalMethod · 0.45
endCompressionStreamMethod · 0.45
compressAndFlushFunction · 0.45
serializeMethod · 0.45

Calls 3

writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected