| 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; |