* @param piece_offset
* @param data
* @return core message wrapped in an adapter
*/
public static Message createCoreBTPiece( int piece_number, int piece_offset, ByteBuffer data ) {
return new MessageAdapter( new BTPiece( piece_number, piece_offset, new DirectByteBuffer( data ), (byte)1 ) );
}