質問

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