public override int ReadByte ()
{
if (closed)
throw new ObjectDisposedException("The stream is closed");
if (fileaccess== FileAccess.Write)
throw new NotSupportedException("Stream does not support reading");
else {
if (current_position >= length)
return (-1);
return (int) Marshal.ReadByte(initial_pointer, (int) current_position++);
}
}