Bitstream Interpretation Library (BIL)  0.1
WireConnectionBS.cpp
Go to the documentation of this file.
1 
9 
10 using namespace bil;
11 
12 
13 void bil::writeBinary(const WireConnection& data, std::ostream& outputStream)
14 {
15  writeBinary(data.m_xOffset, outputStream);
16  writeBinary(data.m_yOffset, outputStream);
17  writeBinary(data.m_tileTypeIndex, outputStream);
18  writeBinary(data.m_wireIndex, outputStream);
19 }
20 
21 
22 void bil::readBinary(WireConnection& data, std::istream& inputStream)
23 {
24  readBinary(data.m_xOffset, inputStream);
25  readBinary(data.m_yOffset, inputStream);
26  readBinary(data.m_tileTypeIndex, inputStream);
27  readBinary(data.m_wireIndex, inputStream);
28 }