MCPcopy Create free account
hub / github.com/apple/foundationdb / fromStringRef

Method fromStringRef

flow/include/flow/ObjectSerializer.h:149–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147
148 template <class T, class VersionOptions>
149 static T fromStringRef(StringRef sr, VersionOptions vo) {
150 T t;
151 ObjectReader reader(sr.begin(), vo);
152 reader.deserialize(t);
153 return t;
154 }
155
156 const uint8_t* data() { return _data; }
157

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected