Sha256: 4cf5a3d7178bc3facea389efcd6c0d1110fb745f855291d73fc099263900c8c7

Contents?: true

Size: 643 Bytes

Versions: 1

Compression:

Stored size: 643 Bytes

Contents

#include <stdint.h>
#include <abstractfile.h>

#define COMP_SIGNATURE 0x636F6D70
#define LZSS_SIGNATURE 0x6C7A7373

typedef struct CompHeader {
	uint32_t signature;
	uint32_t compression_type;
	uint32_t checksum;
	uint32_t length_uncompressed;
	uint32_t length_compressed;
	uint8_t  padding[0x16C];
} __attribute__((__packed__)) CompHeader;

typedef struct InfoComp {
	AbstractFile*		file;
	
	CompHeader      header;
	size_t          offset;
	void*           buffer;

	char            dirty;
} InfoComp;

AbstractFile* createAbstractFileFromComp(AbstractFile* file);
AbstractFile* duplicateCompFile(AbstractFile* file, AbstractFile* backing);

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-3.0.1 req/binject/ext/binject_c/includes/xpwn/lzssfile.h