private void SetParam( QUIC_PARAM_CONN param, QuicBuffer buf) { MsQuicStatusException.ThrowIfFailed(_api.UnsafeSetParam( _nativeObjPtr, (uint)QUIC_PARAM_LEVEL.CONNECTION, (uint)param, buf)); }
private unsafe void SetUshortParamter(QUIC_PARAM_CONN param, ushort count) { var buffer = new QuicBuffer() { Length = sizeof(ushort), Buffer = (byte *)&count }; SetParam(param, buffer); }