text: public override long RamBytesUsed(){long sizeInBytes = 0;sizeInBytes += (docIDs != null) ? RamUsageEstimator.SizeOf(docIDs) : 0;sizeInBytes += (freqs != null) ? RamUsageEstimator.SizeOf(freqs) : 0;if (positions != null){foreach (int[] position in positions){sizeInBytes += (position != null) ? RamUsageEstimator.SizeOf(position) : 0;}}if (payloads != null){foreach (var payload in payloads){if (payload != null){foreach (var pload in payload){sizeInBytes += (pload != null) ? RamUsageEstimator.SizeOf(pload) : 0;}}}}return sizeInBytes;}