Flesh out the stream decoding API a bit