Memory buffer
SAMPLE — these bytes are made up to show how the viewer works. They are not anyone's data. A ChannelData header (80 bytes) is followed by 64 payload bytes: eight 32-bit numbers, two floats, a double and some text.
Read as:
| Offset | Field | Bytes | Hex | Value |
|---|---|---|---|---|
| 0 | cd_type: data type (bits 0-4) | 1 | 08 | byte[] (type 8) |
| 0 | cd_type: memory (bits 5-7) | 1 | 08 | heap memory (0) |
| 1 | cd_owner | 1 | 01 | 1 |
| 2 | cd_ref_kind | 1 | 00 | none (0) |
| 3 | cd_content_dir | 1 | 00 | 0 |
| 4 | cd_sched | 4 | 00000000 | 0 |
| 8 | cd_count[0] | 8 | 0000000000000040 | 64 |
| 16 | cd_count[1] | 8 | 0000000000000000 | 0 |
| 24 | cd_count[2] | 8 | 0000000000000000 | 0 |
| 32 | cd_bytes | 8 | 0000000000000040 | 64 |
| 40 | cd_offset | 8 | 0000000000000050 | 80 |
| 48 | cd_ref_id | 8 | 0000000000000000 | 0 |
| 56 | cd_created_at | 8 | 000000006AB13B80 | 1790000000 (Unix time) |
| 64 | cd_last_access | 8 | 000000006AB13B80 | 1790000000 (Unix time) |
| 72 | cd_flags | 8 | 0000000000000041 | 0x0000000000000041 = owned, inline |
Payload (from offset 80, as bytes)
0050000000000011000000000022000000000033000000000055................
00600000000000880000000000D1300000000015210000000002234..............."
0070406449730F15DB21940642D45F824854843F63F9249E3227771199B15597151F4244A8168@I..@-.T?..w....
00804872651016C1086C1086F1112C442032578765101629834522133000000000000Hello, Web4!....