1 #ifndef CRYPTOPP_FLTRIMPL_H 2 #define CRYPTOPP_FLTRIMPL_H 5 switch (m_continueAt) \ 10 #define FILTER_END_NO_MESSAGE_END_NO_RETURN \ 16 #define FILTER_END_NO_MESSAGE_END \ 17 FILTER_END_NO_MESSAGE_END_NO_RETURN \ 28 #define FILTER_OUTPUT3(site, statement, output, length, messageEnd, channel) \ 32 if (Output(site, output, length, messageEnd, blocking, channel)) \ 33 return STDMAX(size_t(1), length-m_inputPosition);\ 36 #define FILTER_OUTPUT2(site, statement, output, length, messageEnd) \ 37 FILTER_OUTPUT3(site, statement, output, length, messageEnd, DEFAULT_CHANNEL) 39 #define FILTER_OUTPUT(site, output, length, messageEnd) \ 40 FILTER_OUTPUT2(site, 0, output, length, messageEnd) 42 #define FILTER_OUTPUT_BYTE(site, output) \ 43 FILTER_OUTPUT(site, &(const byte &)(byte)output, 1, 0) 45 #define FILTER_OUTPUT2_MODIFIABLE(site, statement, output, length, messageEnd) \ 49 if (OutputModifiable(site, output, length, messageEnd, blocking)) \ 50 return STDMAX(size_t(1), length-m_inputPosition);\ 53 #define FILTER_OUTPUT_MODIFIABLE(site, output, length, messageEnd) \ 54 FILTER_OUTPUT2_MODIFIABLE(site, 0, output, length, messageEnd) 56 #define FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, statement, output, length, messageEnd, modifiable) \ 60 if (modifiable ? OutputModifiable(site, output, length, messageEnd, blocking) : Output(site, output, length, messageEnd, blocking)) \ 61 return STDMAX(size_t(1), length-m_inputPosition);\ 64 #define FILTER_OUTPUT_MAYBE_MODIFIABLE(site, output, length, messageEnd, modifiable) \ 65 FILTER_OUTPUT2_MAYBE_MODIFIABLE(site, 0, output, length, messageEnd, modifiable)