encoding.py 文件源码

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

项目:aws-encryption-sdk-cli 作者: awslabs 项目源码 文件源码
def readline(self, limit=-1):
        # type: (int) -> bytes
        """Read and return one line from the stream.
        If limit is specified, at most limit bytes will be read.

        .. note::

            Because the source that this reads from may not contain any OEL characters, we
            read "lines" in chunks of length ``io.DEFAULT_BUFFER_SIZE``.

        :type limit: int
        :rtype: bytes
        """
        return self.read(limit if limit > 0 else io.DEFAULT_BUFFER_SIZE)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号