These are quite bottlenecky in wasm, the next commit will try to make use of this by calling them directly instead of doing a vcall, and having them inlineable helps the compiler a bit.
remaining
ConstrainedStream
Simply returns how many bytes can be read from the stream.