public MemoryEntry(int handle, Stream stream, bool ownsStream)
 {
     Handle       = handle;
     mStream      = stream;
     mOwnsStream  = ownsStream;
     mContentKind = new Lazy <ContentKind>(() => ContentKindDetector.Detect(GetStream()));
 }
 public StoredEntry(int handle, Stream baseStream, int offset, int length)
 {
     Handle       = handle;
     mBaseStream  = baseStream;
     Length       = length;
     Offset       = offset;
     mContentKind = new Lazy <ContentKind>(() => ContentKindDetector.Detect(GetStream()));
 }