modus

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.

FactValue
Sourcemodules/hostile_exports
Boot imagein the boot image; the image is not built, so its size is not known
Importsnone
Imported bynone

Exports

ExportWhat it does
keep(memory: Handle(Read)) -> Integerremembers the handle that the caller lent, for a later call of kept
kept() -> Integeruses the handle that keep remembered
hold(memory: Handle(Read)) -> Integermaps a memory object that the caller lent, keeps the mapping for a later call of look, and gives the first byte
look() -> Integerreads the first byte through the mapping that hold kept
append_past_capacity(readings: Table(Reading, Append)) -> Integerwrites 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).