monotone

monotone Mtn Source Tree

Root/cryptopp/fltrimpl.h

1#ifndef CRYPTOPP_FLTRIMPL_H
2#define CRYPTOPP_FLTRIMPL_H
3
4#define FILTER_BEGIN\
5switch (m_continueAt)\
6{\
7case 0:\
8m_inputPosition = 0;
9
10#define FILTER_END_NO_MESSAGE_END_NO_RETURN\
11break;\
12default:\
13assert(false);\
14}
15
16#define FILTER_END_NO_MESSAGE_END\
17FILTER_END_NO_MESSAGE_END_NO_RETURN\
18return 0;
19
20/*
21#define FILTER_END\
22case -1:\
23if (messageEnd && Output(-1, NULL, 0, messageEnd, blocking))\
24return 1;\
25FILTER_END_NO_MESSAGE_END
26*/
27
28#define FILTER_OUTPUT2(site, statement, output, length, messageEnd)\
29{\
30case site:\
31statement;\
32if (Output(site, output, length, messageEnd, blocking))\
33return STDMAX(1U, (unsigned int)length-m_inputPosition);\
34}
35
36#define FILTER_OUTPUT(site, output, length, messageEnd)\
37FILTER_OUTPUT2(site, 0, output, length, messageEnd)
38
39#define FILTER_OUTPUT_BYTE(site, output)\
40FILTER_OUTPUT(site, &(const byte &)(byte)output, 1, 0)
41
42#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status