public void PieceEncoding() { PieceMessage message = new PieceMessage(15, 10, Piece.BlockSize); message.Data = new byte[Piece.BlockSize]; message.Encode(buffer, offset); }
public void PieceEncoding() { PieceMessage message = new PieceMessage(15, 10, Piece.BlockSize) { DataReleaser = new ByteBufferPool.Releaser(null, new ByteBuffer(Piece.BlockSize)) }; message.Encode(buffer, offset); }
public void PieceEncoding() { var message = new PieceMessage(15, 10, Piece.BlockSize) { Data = new byte[Piece.BlockSize] }; message.Encode(_buffer, Offset); }