C: reading files which are > 4 GB -


i have kind of reader has handle (file*) file. process keeps writing same file don't have control.

now, other process appends images file, file size cross 4 gb limit.

the reader process reads file using handle, offset , length of image file can found db.

my question how reader able read chunk file present after 4gb size.

i'm working on win32 machine.

edit: i'm working on freebsd machine well.

on freebsd stdio api not limited 32 bits(4gb).

you should have no problems reading past 4gb long use 64 bit integer manipulate offsets , lengths.

if you're seeking in file* , you'll have use fseeko() , not fseek() if you're on 32 bit host. fseek() takes long 32 bit on 32 bit machines. fseeko() takes off_t type 64 bits on freebsd architectures.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -