Ignore:
Timestamp:
Dec 31, 2008, 6:08:13 PM (12 years ago)
Author:
charles
Message:

(trunk libT) improve piece verification speed by providing a larger buffer, and add a mechanism to reuse it when verifying an entire torrent at once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.h

    r7151 r7559  
    5353
    5454/**
    55  * returns nonzero if the piece matches its metainfo's SHA1 checksum.
     55 * @brief Test to see if the piece matches its metainfo's SHA1 checksum.
     56 *
     57 * @param optionalBuffer if calling tr_ioTestPiece() repeatedly, you can
     58 *                       get best performance by providing a buffer with
     59 *                       tor->info.pieceSize bytes.
    5660 */
    57 int tr_ioTestPiece( const tr_torrent*,
    58                     int   piece );
     61tr_bool tr_ioTestPiece( const tr_torrent * tor,
     62                        tr_piece_index_t   piece,
     63                        void             * optionalBuffer,
     64                        size_t             optionalBufferLen );
    5965
    6066
Note: See TracChangeset for help on using the changeset viewer.