I am writing a port from delphi to c# but i am stuck with this. soFromBeginning?

FStream.Seek(FHeader.DirOffset, soFromBeginning);

soFromBeginning isnt support by c# what can i use as a replacement in a Stream? it seems that soFromBeginning is something in the delphi compiler to accommodate for bigger file sizes or something, not sure.

Porting the GLvfsPack from GLScene to c#

有帮助吗?

解决方案

Call the Stream.Seek() method passing SeekOrigin.Begin.

The seek origin is nothing to do with handling large files. It merely specifies how the offset parameter is to be interpreted. Either relative to the start of the file, relative to the end, or relative to the current position.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top