Lucene.Net.Store.RAMDirectory.SizeInBytes C# (CSharp) Method

SizeInBytes() public method

Return total size in bytes of all files in this directory. This is currently quantized to RAMOutputStream.BUFFER_SIZE.
public SizeInBytes ( ) : long
return long
		public long SizeInBytes()
		{
			lock (this)
			{
				EnsureOpen();
				return internalSizeInBytes;
			}
		}
		

Usage Example

Exemplo n.º 1
0
 /// <summary>
 /// Returns how many bytes are being used by the
 ///  RAMDirectory cache
 /// </summary>
 public virtual long SizeInBytes()
 {
     return(Cache.SizeInBytes());
 }