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