コード例 #1
0
ファイル: __init__.py プロジェクト: sasqwatch/deblaze
    def __add__(self, other):
        old_pos = self.tell()
        old_other_pos = other.tell()

        new = BufferedByteStream(self)

        other.seek(0)
        new.seek(0, 2)
        new.write(other.read())

        self.seek(old_pos)
        other.seek(old_other_pos)
        new.seek(0)

        return new
コード例 #2
0
ファイル: __init__.py プロジェクト: AbsMate/bluecop-xbmc-repo
    def __add__(self, other):
        old_pos = self.tell()
        old_other_pos = other.tell()

        new = BufferedByteStream(self)

        other.seek(0)
        new.seek(0, 2)
        new.write(other.read())

        self.seek(old_pos)
        other.seek(old_other_pos)
        new.seek(0)

        return new
コード例 #3
0
ファイル: __init__.py プロジェクト: sasqwatch/deblaze
 def __init__(self, *args, **kwargs):
     BufferedByteStream.__init__(self, *args, **kwargs)
     self._buffer = self
コード例 #4
0
ファイル: __init__.py プロジェクト: AbsMate/bluecop-xbmc-repo
 def __init__(self, *args, **kwargs):
     BufferedByteStream.__init__(self, *args, **kwargs)
     self._buffer = self