The module hostile_exports
Exports that are wrong on purpose, for the tests of the callers (docs/MODULE_CONTRACT.md, "Tables and bytes as parameters"). This module has no entry: no service holds it, and `remote` cannot reach it. A program loads it, or a call host runs it, and only a test does so.
| Fact | Value |
|---|---|
| Source | modules/hostile_exports |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | none |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| keep(memory: Handle(Read)) -> Integer | remembers the handle that the caller lent, for a later call of kept |
| kept() -> Integer | uses the handle that keep remembered |
| hold(memory: Handle(Read)) -> Integer | maps a memory object that the caller lent, keeps the mapping for a later call of look, and gives the first byte |
| look() -> Integer | reads the first byte through the mapping that hold kept |
| append_past_capacity(readings: Table(Reading, Append)) -> Integer | writes 4 readings after the capacity of the table, against the rule of the direction Append: a test of the caller |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
