Lucene.Net.Store.IndexInput.Length C# (CSharp) Method

Length() public abstract method

The number of bytes in the file.
public abstract Length ( ) : long
return long
        public abstract long Length();

Usage Example

示例#1
0
 /// <summary>
 /// Checks that the stream is positioned at the end, and throws exception
 /// if it is not. </summary>
 /// @deprecated Use <seealso cref="#checkFooter"/> instead, this should only used for files without checksums
 public static void CheckEOF(IndexInput @in)
 {
     if (@in.FilePointer != @in.Length())
     {
         throw new System.IO.IOException("did not read all bytes from file: read " + @in.FilePointer + " vs size " + @in.Length() + " (resource: " + @in + ")");
     }
 }
All Usage Examples Of Lucene.Net.Store.IndexInput::Length