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

Datei anzeigen Open project: YPermitin/V8Formats Class Usage Examples

Public Properties

Property Type Description
V8_DEFAULT_PAGE_SIZE System.UInt32

Private Properties

Property 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[]

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method 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 method

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

ByteToHexChar() public static method

public static ByteToHexChar ( byte b ) : char
b byte
return char

Deflate() public method

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

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Inflate() public method

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

PackFromFolder() public method

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

Parse() public method

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

UnpackToFolder() public method

Распаковка файла в файловую структуру с минимальной детализацией
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
return void

V8File() public method

public V8File ( ) : System
return System

V8File() public method

public V8File ( V8File ParentV8File ) : System
ParentV8File V8File
return System

Property Details

V8_DEFAULT_PAGE_SIZE public_oe static_oe property

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