StreamDecoder type fleshed out