MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / ReadBlockFromStream

Method ReadBlockFromStream

src/Utilities/Stream.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62size_t PhobosByteStream::ReadBlockFromStream(IStream* pStm)
63{
64 ULONG out = 0;
65 size_t Length = 0;
66
67 if (SUCCEEDED(pStm->Read(&Length, sizeof(Length), &out)))
68 {
69 if (this->ReadFromStream(pStm, Length))
70 return Length;
71 }
72
73 return 0;
74}
75
76bool PhobosByteStream::WriteBlockToStream(IStream* pStm) const
77{

Callers 5

ProcessMethod · 0.80
LoadKeyMethod · 0.80
GET_STACKFunction · 0.80
GET_STACKFunction · 0.80
GET_STACKFunction · 0.80

Calls 2

ReadFromStreamMethod · 0.95
ReadMethod · 0.45

Tested by

no test coverage detected