
* 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>
12 lines
251 B
C
12 lines
251 B
C
#include "common.h"
|
|
|
|
bool both_require(const uint8_t *bytes, size_t len) {
|
|
if (len >= 1 && bytes[0] == 'a') {
|
|
if (len >= 2 && bytes[1] == 'b') {
|
|
if (len >= 3 && bytes[2] == 'c') {
|
|
return ACCEPT;
|
|
}
|
|
}
|
|
}
|
|
return REJECT;
|
|
} |