Question

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#

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top