How can you mobile (x86 and AMD64) search (> 4 GB) for an offset in a file?

How can you mobile (x86 and AMD64) look for an offset (> 4 GB) in a file?

File.seek () accepts long on AMD64 and int on x86 (or size_t on both).

I need it to accept long on x86. How can i do this?

(I have a terrible feeling that this is a C search restriction, and that I will have to make some relative queries to get an offset> 4 GB.)

Thanks,

Chris.

+6
source share
1 answer

std.stdio.File.seek takes a lot of time, but converts it to int on Windows. This would be a limitation of the Digital Mars C runtime library. Judging by the source code , there are no other platform limitations.

+4
source

Source: https://habr.com/ru/post/897733/


All Articles