]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/LzmaCompress/Sdk/C/7zFile.h
2 2008-11-22 : Igor Pavlov : Public domain */
8 #define USE_WINDOWS_FILE
11 #ifdef USE_WINDOWS_FILE
20 /* ---------- File ---------- */
24 #ifdef USE_WINDOWS_FILE
31 void File_Construct(CSzFile
*p
);
32 WRes
InFile_Open(CSzFile
*p
, const char *name
);
33 WRes
OutFile_Open(CSzFile
*p
, const char *name
);
34 WRes
File_Close(CSzFile
*p
);
36 /* reads max(*size, remain file's size) bytes */
37 WRes
File_Read(CSzFile
*p
, void *data
, size_t *size
);
39 /* writes *size bytes */
40 WRes
File_Write(CSzFile
*p
, const void *data
, size_t *size
);
42 WRes
File_Seek(CSzFile
*p
, Int64
*pos
, ESzSeek origin
);
43 WRes
File_GetLength(CSzFile
*p
, UInt64
*length
);
46 /* ---------- FileInStream ---------- */
54 void FileSeqInStream_CreateVTable(CFileSeqInStream
*p
);
63 void FileInStream_CreateVTable(CFileInStream
*p
);
72 void FileOutStream_CreateVTable(CFileOutStream
*p
);