singrdk/base/Services/Iso9660/Iso9660FileInfo.cs

34 lines
915 B
C#
Raw Permalink Normal View History

2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
2008-11-17 18:29:00 -05:00
// ----------------------------------------------------------------------------
2008-03-05 09:52:00 -05:00
using System;
using System.IO;
namespace Iso9660
{
public class Iso9660FileInfo : Iso9660FileSystemInfo
{
internal Iso9660FileInfo() {}
public Iso9660FileStream Open(FileMode mode, FileAccess access) {
return new Iso9660FileStream(this, mode, access);
}
public Iso9660FileStream OpenRead() {
return Open(System.IO.FileMode.Open,
System.IO.FileAccess.Read);
}
internal static long BlockSize(long block) {
return 2048;
}
internal long BlockFromByte(long pos) {
return (long)blockno + pos / 2048;
}
}
}