Searched refs:piece (Results 1 - 25 of 38) sorted by relevance

12

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/
H A Dtorrent-magnet.h28 void* tr_torrentGetMetadataPiece( tr_torrent * tor, int piece, int * len );
30 void tr_torrentSetMetadataPiece( tr_torrent * tor, int piece, const void * data, int len );
H A Dcache.h42 tr_piece_index_t piece,
49 tr_piece_index_t piece,
56 tr_piece_index_t piece,
H A Dtorrent-magnet.c42 /* don't ask for the same metadata piece more than this often */
49 int piece; member in struct:metadata_node
91 m->piecesNeeded[i].piece = i;
147 tr_torrentGetMetadataPiece( tr_torrent * tor, int piece, int * len ) argument
152 assert( piece >= 0 );
167 const int o = piece * METADATA_PIECE_SIZE;
198 tr_torrentSetMetadataPiece( tr_torrent * tor, int piece, const void * data, int len ) argument
202 const int offset = piece * METADATA_PIECE_SIZE;
206 dbgmsg( tor, "got metadata piece %d", piece );
335 const int piece = m->piecesNeeded[0].piece; local
[all...]
H A Dcache.c42 tr_piece_index_t piece; member in struct:cache_block
100 info->is_piece_done = tr_cpPieceIsComplete( &b->tor->completion, b->piece );
101 info->is_multi_piece = b->piece != blocks[pos]->piece ? true : false;
144 * growing is very small, for blocks on piece boundaries, and nonexistant for
148 /* Move the multi piece runs higher */
171 const tr_piece_index_t piece = b->piece; local
183 err = tr_ioWrite( tor, piece, offset, walk-buf, buf );
303 tr_piece_index_t piece,
301 findBlock( tr_cache * cache, tr_torrent * torrent, tr_piece_index_t piece, uint32_t offset ) argument
313 tr_cacheWriteBlock( tr_cache * cache, tr_torrent * torrent, tr_piece_index_t piece, uint32_t offset, uint32_t length, struct evbuffer * writeme ) argument
347 tr_cacheReadBlock( tr_cache * cache, tr_torrent * torrent, tr_piece_index_t piece, uint32_t offset, uint32_t len, uint8_t * setme ) argument
366 tr_cachePrefetchBlock( tr_cache * cache, tr_torrent * torrent, tr_piece_index_t piece, uint32_t offset, uint32_t len ) argument
[all...]
H A Dcompletion.c72 tr_cpPieceRem( tr_completion * cp, tr_piece_index_t piece )
77 tr_torGetPieceBlockRange( cp->tor, piece, &f, &l );
89 tr_cpPieceAdd( tr_completion * cp, tr_piece_index_t piece )
92 tr_torGetPieceBlockRange( cp->tor, piece, &f, &l );
214 const tr_piece_index_t piece = (tr_piece_index_t)i * interval; local
215 tr_torGetPieceBlockRange( cp->tor, piece, &f, &l );
223 tr_cpMissingBlocksInPiece( const tr_completion * cp, tr_piece_index_t piece )
229 tr_torGetPieceBlockRange( cp->tor, piece, &f, &l );
235 tr_cpMissingBytesInPiece( const tr_completion * cp, tr_piece_index_t piece )
242 const size_t pieceByteSize = tr_torPieceCountBytes( cp->tor, piece );
[all...]
H A Dinout.h28 * Reads the block specified by the piece index, offset, and length.
43 * Writes the block specified by the piece index, offset, and length.
53 * @brief Test to see if the piece matches its metainfo's SHA1 checksum.
56 tr_piece_index_t piece );
60 * Converts a piece index + offset into a file index + offset.
H A Dtorrent.h87 tr_piece_index_t * piece,
97 const tr_piece_index_t piece,
106 tr_piece_index_t piece );
280 /* what piece index is this block in? */
287 /* how many bytes are in this piece? */
289 tr_torPieceCountBytes( const tr_torrent * tor, const tr_piece_index_t piece )
291 return piece + 1 == tor->info.pieceCount ? tor->lastPieceSize
414 * piece size, etc. such as in BEP 9 where peers exchange metadata */
421 * @return true if this piece needs to be tested
426 * @brief Test a piece agains
[all...]
H A Dinout.c300 tr_ioTestPiece( tr_torrent * tor, tr_piece_index_t piece )
304 return recalculateHash( tor, piece, hash )
305 && !memcmp( hash, tor->info.pieces[piece].hash, SHA_DIGEST_LENGTH );
H A Dbandwidth.h63 struct bratecontrol piece; member in struct:tr_band
212 /** @brief Get the number of piece data bytes read or sent by this bandwidth subtree. */
H A Dpeer-msgs.c135 struct evbuffer * block; /* piece data for incoming blocks */
189 struct evbuffer * outMessages; /* all the non-piece messages */
681 popNextMetadataRequest( tr_peermsgs * msgs, int * piece )
686 *piece = msgs->peerAskedForMetadata[0];
958 int64_t piece = -1; local
968 tr_bencDictFindInt( &dict, "piece", &piece );
973 dbgmsg( msgs, "got ut_metadata msg: type %d, piece %d, total_size %d",
974 (int)msg_type, (int)piece, (int)total_size );
984 && ( piece * METADATA_PIECE_SIZ
1711 int piece; local
1770 int piece; local
[all...]
H A Dbandwidth.c370 return getSpeed_Bps( &b->band[dir].piece, HISTORY_MSEC, now );
393 b, byteCount, (isPieceData?"piece":"raw"), oldBytesLeft, band->bytesLeft );
399 bytesUsed( now, &band->piece, byteCount );
H A Dpeer-io.c201 size_t piece = 0; local
203 const int ret = io->canRead( io, io->userData, &piece );
207 if( piece || (piece!=used) )
209 if( piece )
210 tr_bandwidthUsed( &io->bandwidth, TR_DOWN, piece, true, now );
212 if( used != piece )
213 tr_bandwidthUsed( &io->bandwidth, TR_DOWN, used - piece, false, now );
1332 /* count up how many bytes are used by non-piece-data messages
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/
H A Dhttp_chunks.c117 size_t piece; local
190 more or less than 'datasize'. Get the smallest piece.
192 piece = curlx_sotouz((ch->datasize >= length)?length:ch->datasize);
203 piece);
214 (ssize_t)piece);
221 (ssize_t)piece);
237 *wrote += piece;
239 ch->datasize -= piece; /* decrease amount left to expect */
240 datap += piece; /* move read pointer forward */
241 length -= piece; /* decreas
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/tests/
H A Dlang-csharp44 Console.WriteLine(String.Format(catalog.GetPluralString("a piece of cake","{0} pieces of cake",n), n));
46 Console.WriteLine(String.Format(catalog.GetParticularPluralString("++","a piece of cake","{0} pieces of cake",n), n));
69 msgid "a piece of cake"
80 msgid "a piece of cake"
106 msgid "a piece of cake"
119 msgid "a piece of cake"
H A Dlang-java68 System.out.println(MessageFormat.format(GettextResource.ngettext(catalog,"a piece of cake","{0,number} pieces of cake",n), new Object[] { new Integer(n) }));
70 System.out.println(MessageFormat.format(GettextResource.npgettext(catalog,"++","a piece of cake","{0,number} pieces of cake",n), new Object[] { new Integer(n) }));
94 msgid "a piece of cake"
105 msgid "a piece of cake"
131 msgid "a piece of cake"
144 msgid "a piece of cake"
H A Dlang-c35 printf (ngettext ("a piece of cake", "%d pieces of cake", n), n);
69 msgid "a piece of cake"
95 msgid "a piece of cake"
H A Dlang-objc51 printf (ngettext ("a piece of cake", "%d pieces of cake", n), n);
85 msgid "a piece of cake"
111 msgid "a piece of cake"
H A Dlang-bash25 $echo "`eval_ngettext "a piece of cake" "\\$n pieces of cake" $n`"
45 msgid "a piece of cake"
66 msgid "a piece of cake"
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/docs/latex/wx/
H A Dcountstr.tex11 known is if the data has to be written to a piece of memory and the memory has to be
H A Dtdc.tex38 Try to write code so it is parameterised by wxDC - if you do this, the same piece of code may
H A Dcommand.tex76 \item Perform an inverse operation on the last modified piece of
H A Dtconfig.tex29 filesystem-like paths to specify the location of a piece of data. In
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/tools/
H A Dmake_chlayout_test34 check that the layout and order of channels is correctly handled by a piece
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/contrib/src/stc/scintilla/src/
H A DScintillaBase.cxx358 SString piece = selected; local
359 pdoc->InsertString(firstPos, piece.c_str());
360 SetEmptySelection(firstPos + static_cast<int>(piece.length()));
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openssl-1.0.2h/crypto/rc4/asm/
H A Drc4-parisc.pl196 or $ix,$acc,$acc ; last piece, no need to dep
216 or $ix,$acc,$acc ; last piece, no need to dep

Completed in 207 milliseconds

12