20 namespace Deveel.Data.Store {
26 throw new ArgumentNullException(
"file");
35 public override long Seek(
long offset, SeekOrigin origin) {
36 return File.Seek(offset, origin);
40 File.SetLength(value);
43 public override int Read(byte[] buffer,
int offset,
int count) {
44 return File.Read(buffer, offset, count);
47 public override void Write(byte[] buffer,
int offset,
int count) {
48 File.Write(buffer, offset, count);
51 public override bool CanRead {
55 public override bool CanSeek {
59 public override bool CanWrite {
60 get {
return !
File.IsReadOnly; }
63 public override long Length {
64 get {
return File.Length; }
67 public override long Position {
68 get {
return File.Position; }
69 set { Seek(value, SeekOrigin.Begin); }
72 protected override void Dispose(
bool disposing) {
74 base.Dispose(disposing);
override void Write(byte[] buffer, int offset, int count)
override void Dispose(bool disposing)
override void SetLength(long value)
override long Seek(long offset, SeekOrigin origin)
override int Read(byte[] buffer, int offset, int count)