| 29 | } |
| 30 | |
| 31 | bool 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 | |
| 42 | bool PhobosByteStream::Read(data_t* Value, size_t Size) |
| 43 | { |
no test coverage detected