Skip to content

Commit fad8f90

Browse files
committed
doc: redraw a svgbob figure with box drawing characters
Some features were impossible to reproduce with svgbobdoc ^0.3 and ASCII characters.
1 parent c1e58cb commit fad8f90

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

crates/rlsf/src/tlsf.rs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@ use crate::{
2323
/// <center>
2424
/// ```svgbob
2525
/// First level
26-
/// FLLEN = 8
27-
/// ,-----+-----+-----+-----+-----+-----+-----+-----.
28-
/// fl_bitmap: FLBitmap = | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
29-
/// +-----+-----+-----+-----+-----+-----+-----+-----+
30-
/// min size | 2¹¹ | 2¹⁰ | 2⁹ | 2⁸ | 2⁷ | 2⁶ | 2⁵ | 2⁴ |
31-
/// '-----+-----+-----+--+--+-----+-----+-----+-----'
32-
/// |
33-
/// ---------------------------------------------------|-----------------------------------------
34-
/// Second Level |
35-
/// v SLLEN = 8
36-
/// ,-----+-----+-----+-----+-----+-----+-----+-----.
37-
/// "sl_bitmap[4]: SLBitmap"= | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
38-
/// +-----+-----+-----+-----+-----+-----+-----+-----+
39-
/// min size 2⁸(1+n/8) | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
40-
/// +-----+-----+-----+-----+-----+-----+-----+-----+
41-
/// first_free | | | O | | | | | |
42-
/// '-----+-----+--|--+-----+-----+-----+-----+-----'
43-
/// |
44-
/// | size = 416..448
45-
/// |
46-
/// ------------------------------------------------|--------------------------------------------
47-
/// Free blocks |
48-
/// |
49-
/// ,-----------------------------------'
50-
/// | ,---+---+-------. ,---+---+-------. ,---+---+-------.
51-
/// '->-O | O-+-------+---->-O | O-+-------+---->-O | | |
52-
/// +---+---' | +---+---' | +---+---' |
53-
/// | | | | | |
54-
/// | | | | | |
55-
/// '---------------' '---------------' '---------------'
26+
/// "FLLEN = 8"
27+
/// ╭─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────╮
28+
/// "fl_bitmap: FLBitmap ="│ 0 0 0 1 0 0 0 0
29+
/// ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
30+
/// "min size"│ 2¹¹ 2¹⁰ 2⁹ 2⁸ 2⁷ 2⁶ 2⁵ 2⁴
31+
/// ╰─────┴─────┴─────┴──┬──┴─────┴─────┴─────┴─────╯
32+
///
33+
/// ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─│─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
34+
/// Second Level
35+
/// v "SLLEN = 8"
36+
/// ╭─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────╮
37+
/// "sl_bitmap[4]: SLBitmap ="│ 0 0 1 0 0 0 0 0
38+
/// ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
39+
/// "min size 2⁸(1+n/8)"│ 7 6 5 4 3 2 1 0
40+
/// ├─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
41+
/// "first_free"│ │ ○ │
42+
/// ╰─────┴─────┴──┼──┴─────┴─────┴─────┴─────┴─────╯
43+
///
44+
/// │ "size = 416..448"
45+
///
46+
/// ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┼ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─
47+
/// Free blocks
48+
///
49+
/// ╭───────────────────────────────────╯
50+
/// │ ╭───┬───┬───────╮ ╭───┬───┬───────╮ ╭───┬───┬───────╮
51+
/// ╰─┼>○ │ ○─┼───────┼────┼>○ │ ○─┼───────┼────┼>○ │
52+
/// ├───┴───╯ ├───┴───╯ ├───┴───╯
53+
///
54+
///
55+
/// ╰───────────────╯ ╰───────────────╯ ╰───────────────╯
5656
/// 416 bytes 432 bytes 416 bytes
5757
/// ```
5858
/// </center>

0 commit comments

Comments
 (0)