| 8 | } |
| 9 | |
| 10 | void TSerializer<TBuffer>::Load(IInputStream* rh, TBuffer& buf) { |
| 11 | const size_t s = ::LoadSize(rh); |
| 12 | buf.Resize(s); |
| 13 | ::LoadPodArray(rh, buf.Data(), buf.Size()); |
| 14 | } |
| 15 | |
| 16 | [[noreturn]] void NPrivate::ThrowLoadEOFException(size_t typeSize, size_t realSize, TStringBuf structName) { |
| 17 | ythrow TLoadEOF() << "can not load " << structName << "(" << typeSize << ", " << realSize << " bytes)"; |
nothing calls this directly
no test coverage detected