GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — JSTileMap/LFCGzipUtility.h at master · slycrel/JSTileMap

Expand file tree

/

LFCGzipUtility.h

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
37 lines (27 loc) · 1.23 KB
/

LFCGzipUtility.h

Copy path

File metadata and controls

37 lines (27 loc) · 1.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
@file LFCGzipUtility.h
@author Clint Harris (www.clintharris.net)
Modified (added inflatefunction) By Jeremy Stone
Note: The code in this file has been commented so as to be compatible with
Doxygen, a tool for automatically generating HTML-based documentation from
source code. See http://www.doxygen.org for more info.
*/
#import <Foundation/Foundation.h>
#import "zlib.h"
@interface LFCGzipUtility : NSObject
{
}
/***************************************************************************
Uses zlib to compress the given data. Note that gzip headers will be added so
that the data can be easily decompressed using a tool like WinZip, gunzip, etc.
Note: Special thanks to Robbie Hanson of Deusty Designs for sharing sample code
showing how deflateInit2() can be used to make zlib generate a compressed file
with gzip headers:
http://deusty.blogspot.com/2007/07/gzip-compressiondecompression.html
@param pUncompressedData memory buffer of bytes to compress
@return Compressed data as an NSData object
*/
+(NSData*) gzipData: (NSData*)pUncompressedData;
@end
// taken from cocos2d and slightly modified
int InflateMemoryWithHint(unsigned char *in, unsigned int inLength, unsigned char **out, unsigned int outLengthHint );
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.