summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Block.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-06 01:07:56 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-06 01:07:56 +0400
commit2710e2b751d8857472a50c16fb9fc619190773b6 (patch)
tree7ddb953bdd4b2c4d91bdaa033a96adf1c8545c3d /src/Network/BitTorrent/Exchange/Block.hs
parent34d2d93d2906b7627133a8f1c8f6dda4aee2f796 (diff)
Document core messages
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Block.hs')
-rw-r--r--src/Network/BitTorrent/Exchange/Block.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Exchange/Block.hs b/src/Network/BitTorrent/Exchange/Block.hs
index ca635a75..5ab73b65 100644
--- a/src/Network/BitTorrent/Exchange/Block.hs
+++ b/src/Network/BitTorrent/Exchange/Block.hs
@@ -144,7 +144,7 @@ instance Pretty (Block BL.ByteString) where
144 144
145-- | Get size of block /payload/ in bytes. 145-- | Get size of block /payload/ in bytes.
146blockSize :: Block BL.ByteString -> BlockSize 146blockSize :: Block BL.ByteString -> BlockSize
147blockSize blk = fromIntegral (BL.length (blkData blk)) 147blockSize = fromIntegral . BL.length . blkData
148{-# INLINE blockSize #-} 148{-# INLINE blockSize #-}
149 149
150-- | Get block index of a block. 150-- | Get block index of a block.