i have implement 0 copy method in program in qt c++,i read , got transferto() method.as described below: public void transferto(long position, long count, writablebytechannel target);
but can't understand how works.it written internally, depends on underlying operating system's support 0 copy. tried write function didn't meaning of "position" , "channel" here.
can me?
there no cross-platform way 0 copy in c++, , there no zero-copy api in qt. can implement target os using provided api:
linux supports 0 copy through system calls such sys/socket.h's sendfile, sendfile64, , splice. windows supports 0 copy through transmitfile api.
Comments
Post a Comment