Exemple #1
0
 public DebuggerProxy(CategoryRoutingRow v)
 {
     inside             = (int)v[0];
     aligned            = (int)v[1];
     selfAligned        = (int)v[2];
     selfReverseAligned = (int)v[3];
     reverseAligned     = (int)v[4];
     outside            = (int)v[5];
 }
        //public const int kRoutingOffset = 1 + (int)CategoryIndex.LastCategory;

        public bool TryGetRoute(ref RoutingTable table, CategoryGroupIndex inputIndex, out CategoryRoutingRow routingRow)
        {
            var tableIndex = startIndex + (int)inputIndex;// (inputIndex == CategoryGroupIndex.First) ? (int)CategoryGroupIndex.First : ((int)inputIndex - kRoutingOffset);

            if (tableIndex < startIndex || tableIndex >= endIndex)
            {
                routingRow = new CategoryRoutingRow(inputIndex);
                return(false);
            }

            //Debug.Assert(inputIndex == table.Value.inputs[tableIndex]);
            routingRow = table.routingRows[tableIndex];
            return(true);
        }