diff options
author | Yuri Gorshenin <mipt.vi002@gmail.com> | 2017-07-13 18:04:37 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2017-07-13 18:04:37 +0300 |
commit | 92358135885b3f71767fa8b6fc53af160ae58d9d (patch) | |
tree | 1a37c4f0935ebbe5668180a93e9841b50d963cee /coding/bwt_coder.hpp | |
parent | 498e98f8d0baf92b75ecac31cf96dbee2f3ec041 (diff) |
[ugc] Binary SerDes. (#6577)
* [ugc] Binary SerDes.
* Review fixes.
Diffstat (limited to 'coding/bwt_coder.hpp')
-rw-r--r-- | coding/bwt_coder.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/coding/bwt_coder.hpp b/coding/bwt_coder.hpp index cf0e16c3f4..ca51e526b9 100644 --- a/coding/bwt_coder.hpp +++ b/coding/bwt_coder.hpp @@ -48,6 +48,12 @@ public: } template <typename Sink> + static void EncodeAndWriteBlock(Sink & sink, string const & s) + { + EncodeAndWriteBlock(sink, s.size(), reinterpret_cast<uint8_t const *>(s.data())); + } + + template <typename Sink> static void EncodeAndWrite(Params const & params, Sink & sink, size_t n, uint8_t const * s) { CHECK(params.m_blockSize != 0, ()); |