MCPcopy Create free account
hub / github.com/MaskRay/ccls / get

Method get

src/serializer.hh:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67
68 BinaryReader(std::string_view buf) : p_(buf.data()) {}
69 template <typename T> T get() {
70 T ret;
71 memcpy(&ret, p_, sizeof(T));
72 p_ += sizeof(T);
73 return ret;
74 }
75 uint64_t varUInt() {
76 auto x = *reinterpret_cast<const uint8_t *>(p_++);
77 if (x < 253)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected