SharpTox.Core.Tox.FileSendChunk C# (CSharp) Method

FileSendChunk() public method

Sends a chunk of file data to a friend. This should be called in response to OnFileChunkRequested.
public FileSendChunk ( int friendNumber, int fileNumber, long position, byte data ) : bool
friendNumber int The friend to send the chunk to.
fileNumber int The file transfer that this chunk belongs to.
position long The position from which to continue reading.
data byte The data to send. (should be equal to 'Length' received through OnFileChunkRequested).
return bool
        public bool FileSendChunk(int friendNumber, int fileNumber, long position, byte[] data)
        {
            var error = ToxErrorFileSendChunk.Ok;
            return FileSendChunk(friendNumber, fileNumber, position, data, out error);
        }

Same methods

Tox::FileSendChunk ( int friendNumber, int fileNumber, long position, byte data, ToxErrorFileSendChunk &error ) : bool