ProjectionFields

Strict positional schema reader used at the transport and extension boundaries. Consumers must call finish so extra fields cannot silently alter protocol meaning.

Constructors

Link copied to clipboard
constructor(value: ProjectionValue)

Functions

Link copied to clipboard
fun finish()

Rejects additional undeclared fields.

Link copied to clipboard
fun flag(): Boolean

Reads one boolean field.

Link copied to clipboard
fun int(range: IntRange = Int.MIN_VALUE..Int.MAX_VALUE): Int

Reads one integer within the caller's accepted range.

Link copied to clipboard
fun long(): Long

Reads one signed integer.

Link copied to clipboard
fun real(): Double

Reads one finite real field.

Link copied to clipboard
fun text(): String

Reads one UTF-8 text field already validated by the binary codec.

Link copied to clipboard

Reads one schema field, rejecting truncation.

Link copied to clipboard

Reads one nested field sequence.