Expand description
The part↔Java payload convention (docs/extending.md, “The Android bridging contract”):
One byte[] crosses JNI per call, laid out as
[0..4) status i32 BE · [4..8) meta-block length i32 BE · meta "k\nv\n…" UTF-8 ·
payload bytes. A negative status is a transport-error sentinel and the meta block carries
the error message instead of pairs (each part defines its own sentinel values; day-part-http
uses −1 timeout … −6 bad-url). Pure bytes, no JNI, so this compiles and tests on every
host; DayEnvelope.java is the Java twin and the two encode identically.
Structs§
- Envelope
- A decoded (or to-be-encoded) bridge envelope.