CSharpRTMP.Core.Streaming.StreamsManager.FindByType C# (CSharp) Method

FindByType() public method

public FindByType ( ulong type, bool partialType ) : IStream>.Dictionary
type ulong
partialType bool
return IStream>.Dictionary
        public Dictionary<uint, IStream> FindByType(ulong type, bool partialType)
        {
            if (!partialType)
                return StreamsByType.ContainsKey(type) ? StreamsByType[type] : new Dictionary<uint, IStream>();
            return
                StreamsByType.Where(x => (x.Key & type.GetTagMask()) == type)
                    .SelectMany(x => x.Value)
                    .ToDictionary(x => x.Key, x => x.Value);
        }
        public Dictionary<uint, IStream> FindByTypeByName(ulong type, string name, bool partialType, bool partialName)