atomic.py 文件源码

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

项目:python-ebml 作者: QBobWatson 项目源码 文件源码
def write(self, stream, seekfirst=True):
        """Write this element to a binary stream.

        If this element element is not dirty, this method should reproduce the
        byte stream used to read it.

        Raises:
         + ValueError: if the object's data cannot be encoded in self.size
           bytes.
        """
        if seekfirst:
            stream.seek(self.pos_absolute, SEEK_SET)
        stream.write(self.header.encode())
        stream.write(self.encode(self.value, self.size))

    # Virtual
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号