Exemple #1
0
 public File(Context context, uint inodeNum, Inode inode)
 {
     _context = context;
     _inodeNum = inodeNum;
     _inode = inode;
 }
Exemple #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);
     }
 }
 public ExtentsFileBuffer(Context context, Inode inode)
 {
     _context = context;
     _inode = inode;
 }