effusion v0.2.0 Effusion.BTP.Block View Source

A chunk of data for a download.

A block of data is distinct from a piece. A piece is a chunk of data that is piece_length long, and has a 20-byte SHA-1 hash in the torrent's pieces array. Blocks can be accumulated into pieces, and both have a piece index and data. Blocks will also have an :offset value, indicating the data's offset from the start of the piece with index :index.

Link to this section Summary

Link to this section Functions

Link to this function

aggregate_data(info_hash, index)

View Source
Link to this function

split(piece, block_size)

View Source

Split a piece into many blocks of a certain size.

Link to this function

split_stream(piece, block_size)

View Source