OTest2
A C++ testing framework
testmarkoutbinios.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Ondrej Starek
3  *
4  * This file is part of OTest2.
5  *
6  * OTest2 is free software: you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License,
9  * or (at your option) any later version.
10  *
11  * OTest2 is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14  * License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with OTest2. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include <testmarkoutbinios.h>
21 
22 #include <assert.h>
23 #include <ostream>
24 
25 namespace OTest2 {
26 
28  std::ostream* os_) :
29  os(os_) {
30  assert(os != nullptr);
31 
32 }
33 
35 
36 }
37 
38 void TestMarkOutBinIOS::writeBinaryData(
39  std::uint64_t size_,
40  const std::uint8_t* data_) {
41  os->write(reinterpret_cast<const char*>(data_), size_);
42 }
43 
44 } /* -- namespace OTest2 */
testmarkoutbinios.h
OTest2::TestMarkOutBinIOS::~TestMarkOutBinIOS
virtual ~TestMarkOutBinIOS()
Dtor.
Definition: testmarkoutbinios.cpp:34
OTest2
Definition: assertbean.h:25
OTest2::TestMarkOutBinIOS::TestMarkOutBinIOS
TestMarkOutBinIOS(std::ostream *os_)
Ctor.
Definition: testmarkoutbinios.cpp:27