
* reduce diffexecutor constraints for new (so it may be used in a manager-less environment) * add differential observers * finish differential observeration * requirement for observers (weak), default impl for time observer * make the map swapper, revisit how differentialobserver is implemented * semi-specialise multimap, add example * improve example slightly * fix clippy lints * fix last clippy issue * better docs + example flow * improve example: correct map sizing + multimap vs split slice * correct some comments * fix tests + slight bit more docs * fix bindings * fixups for the CI * typo fix Co-authored-by: Dominik Maier <domenukk@gmail.com> Co-authored-by: Dominik Maier <dmnk@google.com>
10 lines
199 B
C
10 lines
199 B
C
#include "second.h"
|
|
|
|
bool inspect_second(const uint8_t *bytes, size_t len) {
|
|
if (both_require(bytes, len)) {
|
|
if (len >= 5 && bytes[4] == 'e') {
|
|
return ACCEPT;
|
|
}
|
|
}
|
|
return REJECT;
|
|
} |