Add support for length-provided streams.