Пример #1
0
 public File(Context context, uint inodeNum, Inode inode)
 {
     _context = context;
     _inodeNum = inodeNum;
     _inode = inode;
 }
Пример #2
0
 public IBuffer GetContentBuffer(Context context)
 {
     if (FastSymlink != null)
     {
         return new StreamBuffer(new MemoryStream(FastSymlink, false), Ownership.Dispose);
     }
     else if ((Flags & InodeFlags.ExtentsUsed) != 0)
     {
         return new ExtentsFileBuffer(context, this);
     }
     else
     {
         return new FileBuffer(context, this);
     }
 }
Пример #3
0
 public ExtentsFileBuffer(Context context, Inode inode)
 {
     _context = context;
     _inode = inode;
 }