MCPcopy Create free account
hub / github.com/apache/kvrocks / AddStreamEntriesToResponse

Function AddStreamEntriesToResponse

src/commands/cmd_stream.cc:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52} // namespace
53
54void AddStreamEntriesToResponse(std::string *output, const std::vector<StreamEntry> &entries) {
55 output->append(redis::MultiLen(entries.size()));
56 for (const auto &entry : entries) {
57 output->append(redis::MultiLen(2));
58 output->append(redis::BulkString(entry.key));
59 output->append(redis::ArrayOfBulkStrings(entry.values));
60 }
61}
62
63class CommandXAck : public Commander {
64 public:

Callers 8

ExecuteMethod · 0.85
sendResultsMethod · 0.85
getStreamInfoMethod · 0.85
ExecuteMethod · 0.85
ExecuteMethod · 0.85
SendResultsMethod · 0.85
SendReplyMethod · 0.85
SendReplyMethod · 0.85

Calls 3

MultiLenFunction · 0.85
BulkStringFunction · 0.85
ArrayOfBulkStringsFunction · 0.85

Tested by

no test coverage detected