public long ramBytesUsed() {long mem = RamUsageEstimator.shallowSizeOf(this) + RamUsageEstimator.sizeOf(offsets);if (offsets != ordinals) {mem += RamUsageEstimator.sizeOf(ordinals);}return mem;}

public virtual long RamBytesUsed(){#if !FEATURE_CONDITIONALWEAKTABLE_ENUMERATORlock (this)#endifreturn ordsCache.Sum(pair => pair.Value.RamBytesUsed());}
