| 31 | } |
| 32 | |
| 33 | const 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 | |
| 45 | namespace { |
| 46 |
no test coverage detected