Resource

structured-writer

Writer for streaming structured content.

resource structured-writer;

F check-write

check-write: func() -> result​<u64, stream-error>;

Check readiness for writing. Returns the number of bytes that can be written without blocking.

F write

write: func(contents: list​<u8>) -> result​<_, stream-error>;

Write structured data contents to the in-progress structured content value.