Word Unperfect
public
Read
Owner: themaster
Branch: main
Commits: 0
Git CLI clone URL
git clone https://www.xt-emporium.com/git/word-unperfect.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
word-unperfect
/
rev
/
wp_nested_stream.h
File editor
#ifndef WP_NESTED_STREAM_H #define WP_NESTED_STREAM_H #include "wp_record_parser.h" #include <stdbool.h> #include <stddef.h> #include <stdint.h> #define WP_NESTED_STREAM_DEFAULT_MAX_DEPTH 4U typedef struct WpNestedStreamOptions { unsigned max_depth; /* Inclusive recursion depth. 0 => default. */ bool follow_nested_hints; /* Recursively parse nested hints inside nested streams. */ } WpNestedStreamOptions; typedef struct WpNestedStreamStats { size_t streams_seen; size_t records_seen; size_t bytes_consumed; size_t char_records; size_t single_byte_codes; size_t fixed_length_codes; size_t variable_length_codes; size_t incomplete_records; size_t mismatched_trailers; size_t ascii_control_records; size_t printable_text_records; size_t single_byte_format_records; size_t packet_records; size_t line_break_records; size_t page_break_records; size_t hard_returns; size_t soft_returns; size_t hard_pages; size_t soft_pages; size_t tabs; size_t indents; size_t dormant_returns; size_t dormant_pages; size_t normalized_spaces; size_t normalized_hyphens; size_t whitespace_gate_records; size_t render_dirty_gate_records; size_t dirty_exempt_records; size_t dirty_neutral_records; size_t extension_scan_stop_records; size_t tsm_highlight_records; size_t hyphenation_suppression_records; size_t hidden_function_gate_records; size_t unknown_single_byte_records; size_t display_columns; size_t fixed_known_packets; size_t fixed_unknown_packets; size_t fixed_mirrored_packets; size_t fixed_zero_payload_packets; size_t extended_character_packets; size_t attribute_begin_packets; size_t attribute_end_packets; size_t d4_layout_state_records; size_t d4_layout_state_payload_bytes; size_t d4_pending_span_records; size_t d4_line_window_records; size_t d4_line_window_extension_bytes; size_t d4_line_metric_records; size_t d4_line_metric_extension_bytes; size_t d4_extension_fragment_records; size_t d4_extension_fragment_bytes; size_t d4_line_build_checkpoint_records; size_t d4_word_pair_checkpoint_records; size_t d4_position_marker_records; size_t d4_control_word_records; size_t d4_compact_metric_records; size_t d4_layout_anchor_records; size_t d4_unknown_records; size_t d4_unknown_payload_bytes; size_t d4_trailing_unparsed_bytes; size_t d4_extension_block_records; size_t d4_extension_block_bytes; size_t variable_structural_packets; size_t variable_generic_packets; size_t d1_definition_packets; size_t d2_outline_packets; size_t d3_generated_text_packets; size_t repeat_group_packets; size_t delayed_text_packets; size_t box_object_packets; size_t table_layout_packets; size_t system_command_packets; size_t variable_nested_stream_hints; size_t variable_repeat_dispatch_packets; size_t variable_repeat_total; size_t variable_extension_scan_packets; size_t variable_refcount_increment_packets; size_t variable_refcount_decrement_packets; size_t scanner_bypass_packets; unsigned max_depth_seen; bool recursion_limit_hit; bool allocation_failed; bool stopped_on_parse_gap; } WpNestedStreamStats; void wp_nested_stream_default_options(WpNestedStreamOptions *options); void wp_nested_stream_stats_clear(WpNestedStreamStats *stats); void wp_nested_stream_stats_merge(WpNestedStreamStats *dst, const WpNestedStreamStats *src); bool wp_nested_stream_analyze_payload(const uint8_t *payload, uint16_t payload_length, uint16_t nested_offset, const WpNestedStreamOptions *options, WpNestedStreamStats *stats); bool wp_nested_stream_analyze_record(const WpRecord *record, const WpNestedStreamOptions *options, WpNestedStreamStats *stats); #endif
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
main
Visibility
public
Your access
Read
Remote
None
File activity
View file history