vault backup: 2026-03-07 13:22:03

This commit is contained in:
sShemet
2026-03-07 13:22:03 +05:00
parent e1c868624a
commit 09e3808118
6 changed files with 2910 additions and 60 deletions

View File

@@ -0,0 +1,29 @@
```mermaid
sequenceDiagram
participant Encoder
participant File as "RLE File"
participant Decoder
Encoder->>File: write header (Type, Mode, ID, Size)
Encoder->>File: emit literal packet (count-1 + literals)
Encoder->>File: emit run packet (0x7D + N, byte or offset)
Encoder->>File: emit backref packet (0x7E + len, distance-1)
File->>Decoder: provide packet stream
Decoder->>Decoder: if control < 0x80 → copy (control+1) literals
Decoder->>Decoder: else → read param; if run → repeat byte; if backref → copy from output buffer
Decoder-->>File: produce decompressed bytes (output)
```
```mermaid
sequenceDiagram
participant Encoder
participant File as "RLE File"
participant Decoder
Encoder->>File: write header (Type, Mode, ID, Size)
Encoder->>File: emit literal packet (count-1 + literals)
Encoder->>File: emit run packet (0x7D + N, byte or offset)
Encoder->>File: emit backref packet (0x7E + len, distance-1)
File->>Decoder: provide packet stream
Decoder->>Decoder: if control < 0x80 → copy (control+1) literals
Decoder->>Decoder: else → read param; if run → repeat byte; if backref → copy from output buffer
Decoder-->>File: produce decompressed bytes (output)
```