Appearance
GetTar Method
Definition
- Namespace:
JASE - Assembly:
JASE.Compression.dll
byte[] GetTar()
csharp
byte[] GetTar()Builds a tar archive from the current Files collection.
Returns
A byte array containing a tar-formatted archive with one entry per file in Files, terminated by two 512-byte zero blocks.
Remarks
Each file is written with a minimal tar header and padded to a 512-byte boundary. File names longer than the 100-byte header field will be truncated when serialized.
The generated archive is uncompressed (plain tar). If compression is required, the caller should wrap the resulting byte array in a separate compression layer (e.g. GZip).