diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-04-05 12:01:52 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-04-05 12:01:52 +0200 |
commit | cbd52a42ee9b93675e5cdaa043df878c423b6571 (patch) | |
tree | f7159b893a8dc1d5efd540ef2b3b21227aaf2b6d /extra/yassl/include/buffer.hpp | |
parent | 70a3cafe4d1aa28e1b6c36d9001bc0d487262976 (diff) | |
parent | dea3544b2d9bd68961b8e84c3772deda435f15b5 (diff) | |
download | mariadb-git-cbd52a42ee9b93675e5cdaa043df878c423b6571.tar.gz |
merge
Diffstat (limited to 'extra/yassl/include/buffer.hpp')
-rw-r--r-- | extra/yassl/include/buffer.hpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/extra/yassl/include/buffer.hpp b/extra/yassl/include/buffer.hpp index a51bca9a630..2d7817a7ca2 100644 --- a/extra/yassl/include/buffer.hpp +++ b/extra/yassl/include/buffer.hpp @@ -46,12 +46,6 @@ typedef unsigned int uint; const uint AUTO = 0xFEEDBEEF; -// Checking Policy should implement a check function that tests whether the -// index is within the size limit of the array -struct Check { - void check(uint i, uint limit); -}; - struct NoCheck { void check(uint, uint); @@ -66,7 +60,7 @@ struct NoCheck { * write to the buffer bulk wise and have the correct size */ -class input_buffer : public Check { +class input_buffer : public NoCheck { uint size_; // number of elements in buffer uint current_; // current offset position in buffer byte* buffer_; // storage for buffer @@ -132,7 +126,7 @@ private: * Not using vector because need checked []access and the ability to * write to the buffer bulk wise and retain correct size */ -class output_buffer : public Check { +class output_buffer : public NoCheck { uint current_; // current offset and elements in buffer byte* buffer_; // storage for buffer byte* end_; // end of storage marker |