// Error /home/alan/Desktop/programming/bitsharp/src/MonoTorrent/Client/PeerMessages/FastPeerExtensions/SuggestPieceMessage.cs(141,34): error CS0539: `MonoTorrent.Client.PeerMessages.IPeerMessageInternal.Encode' in explicit interface declaration is not a member of interface ------------------------------------------------------------------------ // Interface int Encode(ArraySegment buffer, int offset); void Decode(ArraySegment buffer, int offset, int length); ------------------------------------------------------------------------ // Implementation internal int Encode(ArraySegment buffer, int offset) { if (!ClientEngine.SupportsFastPeer) throw new ProtocolException("Message decoding not supported"); buffer.Array[buffer.Offset + offset + 4] = MessageId; Buffer.BlockCopy(BitConverter.GetBytes(IPAddress.HostToNetworkOrder(messageLength)), 0, buffer.Array, buffer.Offset + offset, 4); Buffer.BlockCopy(BitConverter.GetBytes(IPAddress.HostToNetworkOrder(this.pieceIndex)), 0, buffer.Array, buffer.Offset + offset + 5, 4); return this.messageLength + 4; } internal void Decode(ArraySegment buffer, int offset, int length) { if (!ClientEngine.SupportsFastPeer) throw new ProtocolException("Message decoding not supported"); this.pieceIndex = IPAddress.NetworkToHostOrder(BitConverter.ToInt32(buffer.Array, buffer.Offset + offset)); }