Bitstream Interpretation Library (BIL)
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
serialization
V5AddressLayoutBS.cpp
Go to the documentation of this file.
1
6
#include <
serialization/V5AddressLayoutBS.hpp
>
7
#include <
util/BinarySerialization.hpp
>
8
#include <
configuration/V5AddressLayout.hpp
>
9
10
using namespace
bil;
11
12
13
void
bil::writeBinary
(
const
V5AddressLayout
& data, std::ostream& outputStream)
14
{
15
writeBinary
(data.m_columns, outputStream);
16
writeBinary
(data.m_upperRowCount, outputStream);
17
writeBinary
(data.m_lowerRowCount, outputStream);
18
}
19
20
21
void
bil::readBinary
(
V5AddressLayout
& data, std::istream& inputStream)
22
{
23
readBinary
(data.m_columns, inputStream);
24
readBinary
(data.m_upperRowCount, inputStream);
25
readBinary
(data.m_lowerRowCount, inputStream);
26
data.m_bramCount = data.
countBRAMs
(data.m_columns);
27
}
Generated on Wed Aug 8 2012 21:57:41 for Bitstream Interpretation Library (BIL) by
1.8.1.1