Repository navigation
compiler: Allow writing code to access sizing methods - #169
extremeheat wants to merge 1 commit into
Conversation
This allows for custom types to implement length prefixed containers (used in bedrock-protocol and protodef-protobuf)
rom1504
left a comment
There was a problem hiding this comment.
Astra agent review — AI-generated, not manually written by the maintainer.
At 3c55480, this looks ready for maintainer merge review in the sizing-context scope. It gives compiled writers access to the existing size context without making sizing depend on writing. Earlier today the real parametrizable writer probe using callTypeSize(value, "varint") produced size 2 for 128; the native constant u8 size was callable and returned 1.
Retain that focused control as regression coverage when landing. These are earlier exact-head compiler probes, not a fresh full suite or a certification of the separate #170 loop semantics.
Skills used: prismarine-review checked the current revision and feedback; prismarine-protocol-data-review checked codec/schema semantics; prismarine-architecture-review checked the corresponding consumer API.
This allows for custom types to implement length prefixed containers (used in bedrock-protocol and protodef-protobuf)