Documentation ¶
Index ¶
Constants ¶
View Source
const BlockSize = 16 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Index uint32 // index in piece Begin uint32 // offset in piece Length uint32 // always equal to BlockSize except the last block of a piece. }
Block is part of a Piece that is specified in peerprotocol.Request messages.
Click to show internal directories.
Click to hide internal directories.