Example #1
0
        static AddressReference GetAddressReference(MDTableContext context)
        {
            if (context.Records.Length == 0)
            {
                return(null);
            }
            if (!context.ContiguousRecords())
            {
                return(null);
            }

            ulong start = context.Records[0].StartOffset;
            ulong end   = context.Records[context.Records.Length - 1].EndOffset;

            return(new AddressReference(context.MetaDataTableVM.Document.Name, false, start, end - start + 1));
        }
        static AddressReference GetAddressReference(MDTableContext context)
        {
            if (context.Records.Length == 0)
            {
                return(null);
            }
            if (!context.ContiguousRecords())
            {
                return(null);
            }

            var start = context.Records[0].Span.Start;
            var end   = context.Records[context.Records.Length - 1].Span.End;

            return(new AddressReference(context.MetaDataTableVM.Buffer.Name, false, start.ToUInt64(), (end - start).ToUInt64()));
        }
Example #3
0
 public override bool IsEnabled(MDTableContext context)
 {
     return(TableSorter.CanSort(context.MetaDataTableVM.TableInfo) &&
            context.Records.Length > 1 &&
            context.ContiguousRecords());
 }
Example #4
0
 static bool IsEnabledInternal(MDTableContext context) =>
 TableSorter.CanSort(context.MetaDataTableVM.TableInfo) &&
 context.Records.Length > 1 &&
 context.ContiguousRecords();