C# Class DevelPlatform.OneCEUtils.V8Formats.V8Formats.V8File

Afficher le fichier Open project: YPermitin/V8Formats Class Usage Examples

Méthodes publiques

Свойство Type Description
V8_DEFAULT_PAGE_SIZE System.UInt32

Private Properties

Свойство Type Description
ClearTempData void
Deflate bool
DirSize long
GetData void
Inflate bool
IntToHexString String
IsV8File bool
IsV8File bool
LoadFile void
LoadFileFromFolder void
Pack void
ReadBlockData void
SaveBlockDataToBuffer void
SaveBlockDataToBuffer void
SaveBlockDataToBuffer void
SaveFile void
SaveFileToFolder bool
V8File System
V8File System
V8File System
V8File System
_httoi System.UInt32
_intTo_BytesChar byte[]
_inttobytes byte[]

Méthodes publiques

Méthode Description
Build ( string dirName, string filename, int level, bool enableNewCode = true ) : void

Упаковка файла из файловой структуры с подробной детализацией детализацией

ByteToHexChar ( byte b ) : char
Deflate ( string in_filename, string out_filename, bool enableNewCode = true ) : void

Сжатие произвольных файлов

Dispose ( ) : void
Inflate ( string in_filename, string out_filename, bool enableNewCode = true ) : void

Распаковка произвольных файлов

PackFromFolder ( string dirname, string outFileName, bool enableNewCode = true ) : void

Упаковка файла из файловой структуры с минимальной детализацией

Parse ( string filename, string dirname, int level, bool enableNewCode = true ) : void

Распаковка файла в файловую структуру с подробной детализацией детализацией

UnpackToFolder ( string filenameIn, string dirName, string UnpackElemWithName = null, bool printProgress = false, bool enableNewCode = true ) : void

Распаковка файла в файловую структуру с минимальной детализацией

V8File ( ) : System
V8File ( V8File ParentV8File ) : System

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
ClearTempData ( ) : void
Deflate ( System.IO.MemoryTributary pDataStream, System.IO.MemoryTributary &outBufStream ) : bool
DirSize ( DirectoryInfo d ) : long
GetData ( System.IO.MemoryTributary &dataStream ) : void
Inflate ( System.IO.MemoryTributary compressedMemoryStream, System.IO.MemoryTributary &outBufStream ) : bool
IntToHexString ( int n, int len ) : String
IsV8File ( BinaryReader inputFileStream ) : bool
IsV8File ( System.IO.MemoryTributary inputFileStream ) : bool
LoadFile ( BinaryReader inputFileStream, bool boolInflate = true, bool UnpackWhenNeed = true ) : void
LoadFileFromFolder ( string dirname, bool enableNewCode = true ) : void
Pack ( bool enableNewCode = true ) : void
ReadBlockData ( BinaryReader inputFileStream, stBlockHeader pBlockHeader, UInt32 elemHeaderAddr, System.IO.MemoryTributary &pBlockDataStream, UInt32 &BlockDataSize ) : void
SaveBlockDataToBuffer ( BinaryWriter &DataBufferStream, System.IO.MemoryTributary pBlockDataStream, UInt32 PageSize = 512 ) : void
SaveBlockDataToBuffer ( BinaryWriter &DataBufferStream, UInt32 &cur_pos, byte pBlockData, UInt32 PageSize = 512 ) : void
SaveBlockDataToBuffer ( byte &DataBuffer, UInt32 &cur_pos, byte pBlockData, UInt32 PageSize = 512 ) : void
SaveFile ( string filename, bool enableNewCode = true ) : void
SaveFileToFolder ( string dirName, BinaryReader inputFileStream ) : bool
V8File ( BinaryReader pFileDataStream, int InflateSize, bool boolInflate = true, Mode OperationMode = Mode.Optimal ) : System
V8File ( System.IO.MemoryTributary pFileDataStream, int InflateSize, bool boolInflate = true, Mode OperationMode = Mode.Optimal ) : System
V8File ( V8File ParentV8File, BinaryReader pFileDataStream, int InflateSize, bool boolInflate = true, Mode OperationMode = Mode.Optimal ) : System
V8File ( V8File ParentV8File, System.IO.MemoryTributary pFileDataStream, int InflateSize, bool boolInflate = true, Mode OperationMode = Mode.Optimal ) : System
_httoi ( byte value ) : UInt32
_intTo_BytesChar ( UInt32 value ) : byte[]
_inttobytes ( UInt32 value ) : byte[]

Method Details

Build() public méthode

Упаковка файла из файловой структуры с подробной детализацией детализацией
public Build ( string dirName, string filename, int level, bool enableNewCode = true ) : void
dirName string
filename string
level int
enableNewCode bool
Résultat void

ByteToHexChar() public static méthode

public static ByteToHexChar ( byte b ) : char
b byte
Résultat char

Deflate() public méthode

Сжатие произвольных файлов
public Deflate ( string in_filename, string out_filename, bool enableNewCode = true ) : void
in_filename string
out_filename string
enableNewCode bool
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Inflate() public méthode

Распаковка произвольных файлов
public Inflate ( string in_filename, string out_filename, bool enableNewCode = true ) : void
in_filename string
out_filename string
enableNewCode bool
Résultat void

PackFromFolder() public méthode

Упаковка файла из файловой структуры с минимальной детализацией
public PackFromFolder ( string dirname, string outFileName, bool enableNewCode = true ) : void
dirname string
outFileName string
enableNewCode bool
Résultat void

Parse() public méthode

Распаковка файла в файловую структуру с подробной детализацией детализацией
public Parse ( string filename, string dirname, int level, bool enableNewCode = true ) : void
filename string
dirname string
level int
enableNewCode bool
Résultat void

UnpackToFolder() public méthode

Распаковка файла в файловую структуру с минимальной детализацией
public UnpackToFolder ( string filenameIn, string dirName, string UnpackElemWithName = null, bool printProgress = false, bool enableNewCode = true ) : void
filenameIn string
dirName string
UnpackElemWithName string
printProgress bool
enableNewCode bool
Résultat void

V8File() public méthode

public V8File ( ) : System
Résultat System

V8File() public méthode

public V8File ( V8File ParentV8File ) : System
ParentV8File V8File
Résultat System

Property Details

V8_DEFAULT_PAGE_SIZE public_oe static_oe property

Стандартный размер блока данных в байтах для форматов файлов CF, EPF и ERF.
public static UInt32,System V8_DEFAULT_PAGE_SIZE
Résultat System.UInt32