summaryrefslogtreecommitdiff
path: root/docs/otr_format/blob.md
blob: 53970bde09136b3a68cdf4a9600a54b026dec7dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@page otr_blob Blob Resource
# Blob Resource (OBLB)

If the Resource Type is `OBLB` (`0x4F424C42`), the header is immediately followed by the blob definition. This resource type is used for generic binary data that doesn't fit into other specific categories.

## Blob Header

| Offset | Size | Type | Description |
| :--- | :--- | :--- | :--- |
| 0x40 | 4 | u32 | Data Size |
| 0x44 | ... | [u8] | Raw Blob Data |

## YAML Configuration

To define a blob asset in the configuration, use the `BLOB` type.

| Field | Type | Description |
| :--- | :--- | :--- |
| `type` | String | Must be `BLOB`. |
| `offset` | Integer | The offset of the blob data in the ROM/binary. |
| `size` | Integer | The size of the blob data in bytes. |
| `symbol` | String | (Optional) The symbol name for the asset. |

Example:
```yaml
- type: BLOB
  offset: 0x1000
  size: 0x200
  symbol: my_custom_blob
```