inlines - part 2
This commit is contained in:
parent
df02fd9c4d
commit
af22d8ef23
7 changed files with 43 additions and 44 deletions
|
@ -112,6 +112,9 @@ class SendFromBuffer(FileTransfer):
|
|||
self._data = data
|
||||
self._file_number = tox.file_send(friend_number, TOX_FILE_KIND['DATA'], len(data), None, file_name)
|
||||
|
||||
def get_data(self):
|
||||
return self._data
|
||||
|
||||
def send_chunk(self, position, size):
|
||||
if size:
|
||||
data = self._data[position:position + size]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue