AbstractStreamAdapter.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:Playground3 作者: CrimsonVista 项目源码 文件源码
def available(self):
        """
        This is duplicate functionality if we have a HighPerformanceStreamIO.
        But we also want to support those that aren't. TODO: Better solution?
        """
        curPos = self._stream.tell()
        self._stream.seek(0, SEEK_END)
        endPos = self._stream.tell()
        self._stream.seek(curPos)
        return endPos-curPos
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号