문제

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