MCPcopy Create free account
hub / github.com/catboost/catboost / Insert

Method Insert

contrib/libs/grpc/src/compiler/cpp_plugin.h:147–154  ·  view source on GitHub ↗

Insert the given code into the given file at the given insertion point.

Source from the content-addressed store, hash-verified

145 private:
146 // Insert the given code into the given file at the given insertion point.
147 void Insert(grpc::protobuf::compiler::GeneratorContext* context,
148 const TString& filename, const TString& insertion_point,
149 const TString& code) const {
150 std::unique_ptr<grpc::protobuf::io::ZeroCopyOutputStream> output(
151 context->OpenForInsert(filename, insertion_point));
152 grpc::protobuf::io::CodedOutputStream coded_out(output.get());
153 coded_out.WriteRaw(code.data(), code.size());
154 }
155};
156
157#endif // GRPC_INTERNAL_COMPILER_CPP_PLUGIN_H

Callers

nothing calls this directly

Calls 5

OpenForInsertMethod · 0.45
getMethod · 0.45
WriteRawMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected