Document stream_codec