ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
SshDeflate Struct Reference

Streaming server-to-client DEFLATE compressor (one per SSH connection). More...

#include <zlib.h>

Public Attributes

uint8_t * work
 history+input work buffer, capacity SSH_ZLIB_WORK_SIZE.
 
uint16_t * head
 hash bucket heads, SSH_ZLIB_HASH_SIZE entries.
 
uint16_t * prev
 hash chain (absolute-position indexed), SSH_ZLIB_WORK_SIZE entries.
 
uint16_t * ll_code
 fixed literal/length Huffman codes (bit-reversed), 288 entries.
 
uint8_t * ll_len
 their bit lengths, 288 entries.
 
uint16_t * d_code
 fixed distance Huffman codes (bit-reversed), 30 entries.
 
uint8_t * d_len
 their bit lengths, 30 entries.
 
size_t hist
 bytes of history currently at the front of work.
 
proto_bool header_sent
 true once the leading 2-byte zlib header has been emitted.
 

Detailed Description

Streaming server-to-client DEFLATE compressor (one per SSH connection).

The window (history) lives at the front of work; hist bytes are valid. Hash chains (head / prev) are rebuilt over the history each packet, so a slid buffer needs no chain fix-up. All pointers are caller-owned; ssh_deflate_init() wires them and seeds the fixed tables.

Definition at line 38 of file zlib.h.

Member Data Documentation

◆ work

uint8_t* SshDeflate::work

history+input work buffer, capacity SSH_ZLIB_WORK_SIZE.

Definition at line 40 of file zlib.h.

◆ head

uint16_t* SshDeflate::head

hash bucket heads, SSH_ZLIB_HASH_SIZE entries.

Definition at line 41 of file zlib.h.

◆ prev

uint16_t* SshDeflate::prev

hash chain (absolute-position indexed), SSH_ZLIB_WORK_SIZE entries.

Definition at line 42 of file zlib.h.

◆ ll_code

uint16_t* SshDeflate::ll_code

fixed literal/length Huffman codes (bit-reversed), 288 entries.

Definition at line 43 of file zlib.h.

◆ ll_len

uint8_t* SshDeflate::ll_len

their bit lengths, 288 entries.

Definition at line 44 of file zlib.h.

◆ d_code

uint16_t* SshDeflate::d_code

fixed distance Huffman codes (bit-reversed), 30 entries.

Definition at line 45 of file zlib.h.

◆ d_len

uint8_t* SshDeflate::d_len

their bit lengths, 30 entries.

Definition at line 46 of file zlib.h.

◆ hist

size_t SshDeflate::hist

bytes of history currently at the front of work.

Definition at line 47 of file zlib.h.

◆ header_sent

proto_bool SshDeflate::header_sent

true once the leading 2-byte zlib header has been emitted.

Definition at line 48 of file zlib.h.


The documentation for this struct was generated from the following file: