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

Method WriteToStream

src/Utilities/Stream.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31bool PhobosByteStream::WriteToStream(IStream* pStm) const
32{
33 const size_t Length(this->Data.size());
34 auto pcv = reinterpret_cast<const void*>(this->Data.data());
35
36 ULONG out = 0;
37 auto success = pStm->Write(pcv, Length, &out);
38
39 return SUCCEEDED(success) && out == Length;
40}
41
42bool PhobosByteStream::Read(data_t* Value, size_t Size)
43{

Callers 1

WriteBlockToStreamMethod · 0.95

Calls 3

sizeMethod · 0.45
dataMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected