FileDocCategorySizeDatePackage
BTMessagePiece.javaAPI DocAzureus 3.0.3.41754Thu Feb 09 19:43:20 GMT 2006org.gudy.azureus2.plugins.messaging.bittorrent

BTMessagePiece

public class BTMessagePiece extends org.gudy.azureus2.pluginsimpl.local.messaging.MessageAdapter

Fields Summary
private final com.aelitis.azureus.core.peermanager.messaging.bittorrent.BTPiece
piece
Constructors Summary
protected BTMessagePiece(com.aelitis.azureus.core.peermanager.messaging.Message core_msg)

    super( core_msg );
    piece = (BTPiece)core_msg;
  
Methods Summary
public java.nio.ByteBuffergetPieceData()

  return piece.getPieceData().getBuffer( DirectByteBuffer.SS_EXTERNAL );  
public intgetPieceNumber()

  return piece.getPieceNumber();  
public intgetPieceOffset()

  return piece.getPieceOffset();