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

Function GetSizedString

src/common/encoding.h:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110inline bool GetSizedString(rocksdb::Slice *input, rocksdb::Slice *value) {
111 uint32_t size = 0;
112 if (!GetFixed32(input, &size)) return false;
113
114 if (input->size() < size) return false;
115 *value = rocksdb::Slice(input->data(), size);
116 input->remove_prefix(size);
117 return true;
118}
119
120char *EncodeDouble(char *buf, double value);
121void PutDouble(std::string *dst, double value);

Callers 10

TSRevLabelKeyMethod · 0.85
LoadMethod · 0.85
TagValuesMethod · 0.85
DecodeNeighboursMethod · 0.85
DefaultEntryPointMethod · 0.85
DeleteVectorEntryMethod · 0.85
InRangeDecodeMethod · 0.85
InRangeDecodeMethod · 0.85
FilterMethod · 0.85
DecodeMethod · 0.85

Calls 1

GetFixed32Function · 0.85

Tested by

no test coverage detected