/// <summary> /// Return the memory usage of this class in bytes. </summary> public long RamBytesUsed() { return(RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF + 2 * RamUsageEstimator.NUM_BYTES_INT32) + RamUsageEstimator.SizeOf(data) + positions.RamBytesUsed() + wordNums.RamBytesUsed()); }
/// <summary> /// Returns total byte size used by this ordinal map. /// </summary> public virtual long RamBytesUsed() { long size = globalOrdDeltas.RamBytesUsed() + firstSegments.RamBytesUsed(); for (int i = 0; i < ordDeltas.Length; i++) { size += ordDeltas[i].RamBytesUsed(); } return(size); }
/// <summary> /// Return the memory usage of this instance. </summary> public long RamBytesUsed() { return(RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF) + docIDs.RamBytesUsed() + offsets.RamBytesUsed()); }