Beispiel #1
0
        protected ErrorCode SetStreamChannelPacketSize(uint value = 8164)
        {
            Debug.Assert(_handle != IntPtr.Zero);

            var errorCode = OfficialApi.SetStreamChannelPacketSize(_handle, value);

            if (errorCode != ErrorCode.MV_OK)
            {
                this.ErrorFailWithReason(errorCode);
            }
            else
            {
                this.InfoSuccess();
            }
            return(errorCode);
        }