MCPcopy Create free account
hub / github.com/SOUI2/soui / Length

Method Length

demo/httpsvr/HTTPServer.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35 }
36 virtual __int64 Length(HANDLE f)
37 {
38 if(!f) return 0;
39 FILE *f2=(FILE*)f;
40 int pos=ftell(f2);
41 fseek(f2,0,SEEK_END);
42 __int64 nRet= ftell(f2);
43 fseek(f2,pos,SEEK_SET);
44 return nRet;
45 }
46 virtual __int64 Read(HANDLE f,char *pbuf,__int64 nSize)
47 {
48 if(!f) return 0;

Callers 1

ParseRequestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected