Not used for now, and this doesn't allow to get the size of a stream. This reverts commit 8c3c7a34 and partially 0f135d64