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

Method readBytes

flow/serialize.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33const void* BinaryReader::readBytes(int bytes) {
34 const char* b = begin;
35 const char* e = b + bytes;
36 if (e > end) {
37 ASSERT(!g_network->isSimulated());
38 TraceEvent("SerializationFailed").backtrace();
39 throw serialization_failed();
40 }
41 begin = e;
42 return b;
43}
44
45namespace {
46

Callers 8

nextMessageMethod · 0.45
getMessageMethod · 0.45
getMessageWithTagsMethod · 0.45
peekMessagesFromMemoryFunction · 0.45
decodeKeyServersValueFunction · 0.45
loadFromArenaMethod · 0.45

Calls 2

TraceEventClass · 0.85
isSimulatedMethod · 0.45

Tested by

no test coverage detected