MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / set_input

Method set_input

common/memory-stream/memory-stream.h:56–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 std::string_view _inv;
55public:
56 void set_input(std::string_view in) {
57 _in.assign(in.data(), in.size());
58 _inv = {_in};
59 }
60 void set_input(std::string_view in, bool copy) {
61 if (!copy) _inv = in;
62 else set_input(in);

Callers 1

TESTFunction · 0.45

Calls 3

assignMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36