summaryrefslogtreecommitdiff
path: root/src/phenotypebinary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/phenotypebinary.cpp')
-rw-r--r--src/phenotypebinary.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/phenotypebinary.cpp b/src/phenotypebinary.cpp
index 68f9ebf..0d32c9f 100644
--- a/src/phenotypebinary.cpp
+++ b/src/phenotypebinary.cpp
@@ -133,3 +133,13 @@ void Genetic::PhenotypeBinary::extractBits( uint64_t &rTarget, int iStart,
133 } 133 }
134} 134}
135 135
136void Genetic::PhenotypeBinary::write( Bu::Stream &rStream )
137{
138 rStream.write( aGenes, sizeof(uint_fast32_t)*iWords );
139}
140
141void Genetic::PhenotypeBinary::read( Bu::Stream &rStream )
142{
143 rStream.read( aGenes, sizeof(uint_fast32_t)*iWords );
144}
145