Ejemplo n.º 1
0
        public KFile(Kernel kernel, KDevice device, IMediaItem item)
        {
            Kernel = kernel;
            Device = device;
            Item   = item;

            FolderOffset = 0;

            IsOpen   = true;
            CanWrite = !((item.Attributes & MediaItemAttributes.ReadOnly) == MediaItemAttributes.ReadOnly);
            CanSeek  = false;
            IsValid  = true;
        }
Ejemplo n.º 2
0
        public KFile( Kernel kernel, KDevice device, IMediaItem item )
        {
            Kernel = kernel;
            Device = device;
            Item = item;

            FolderOffset = 0;

            IsOpen = true;
            CanWrite = !( ( item.Attributes & MediaItemAttributes.ReadOnly ) == MediaItemAttributes.ReadOnly );
            CanSeek = false;
            IsValid = true;
        }
Ejemplo n.º 3
0
        public KFile(Kernel kernel, KDevice device, IMediaItem item, Stream stream)
        {
            Kernel = kernel;
            Device = device;
            Item   = item;

            FolderOffset = 0;

            Stream = stream;

            IsOpen   = true;
            CanWrite = stream.CanWrite;
            CanSeek  = stream.CanSeek;
            IsValid  = true;
        }
Ejemplo n.º 4
0
        public KFile( Kernel kernel, KDevice device, IMediaItem item, Stream stream )
        {
            Kernel = kernel;
            Device = device;
            Item = item;

            FolderOffset = 0;

            Stream = stream;

            IsOpen = true;
            CanWrite = stream.CanWrite;
            CanSeek = stream.CanSeek;
            IsValid = true;
        }