/// <summary> /// Create a <see cref="DatagramPacket"/> decoder using the specified <see cref="IByteBuffer"/> decoder. /// </summary> /// <param name="decoder">the specified <see cref="IByteBuffer"/> decoder</param> public DatagramPacketDecoder(MessageToMessageDecoder <IByteBuffer> decoder) { if (decoder is null) { CThrowHelper.ThrowArgumentNullException(CExceptionArgument.decoder); } this.decoder = decoder; }
public DatagramPacketDecoder(MessageToMessageDecoder <IByteBuffer> decoder) { Contract.Requires(decoder != null); this.decoder = decoder; }