ascii-chat
Binary v0.16.114-28-gf5913657f
Library lib/v0.3.2-3302-gf5913657f
Video chat in your terminal
Loading...
Searching...
No Matches
video/ascii/frame_validator.h
Go to the documentation of this file.
1#ifndef FRAME_VALIDATOR_H
2#define FRAME_VALIDATOR_H
3
4#include <stddef.h>
5#include <stdint.h>
6#include <stdbool.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
24bool frame_validate_integrity(const char *frame_data, size_t frame_size);
25
36size_t frame_get_valid_end(const char *frame_data, size_t frame_size);
37
38#endif // FRAME_VALIDATOR_H
39
40#ifdef __cplusplus
41}
42#endif
bool frame_validate_integrity(const char *frame_data, size_t frame_size)
Validate ASCII frame integrity.
size_t frame_get_valid_end(const char *frame_data, size_t frame_size)
Get the actual valid frame end position.