News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

zip source

Started by 70mas, April 30, 2006, 08:39:59 PM

Previous topic - Next topic

msmith

Ar-ras,

It looks like you're correct.

So much for the "highly-optimized assembler code" claim.

It looks like what I bought was the part that you are referring to with file I/O hooked on.

I could have just as well done my own file IO and saved same money.

Thanks for the info.

Mike

PS:

I just downloaded the "in-memory" version. It claims a 32768 max buffer size. I don't know if this is a mistake or what. The "full version" that I have does not have this restriction. I don't know if this is a mistake in the docs or what. If you could only zip/unzip files or memory blocks of 32768 maximum size, it wouldn't be much use to me.
If the docs are correct and 32768 is a true limit, then it would follow that the "full product" has a different core.

Ar-ras

It is optimized assembler code... just in a delphi "frame"

I think the InMemory Version has a



.bss
Buffer db 32768 dup(?)


I think a masm32 - zip project is missing

donkey

I usually use ZlibStat, the statically linked version of Zlib. I have included it the lib with the WinExplorer distribution, there is a function in WinExplorer that displays the contents of a zip file.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Ar-ras

Yes but what about a highly optimized masm32-zip encoding / decoding source.. :bdg

hutch--

Ar-ras,

You are free to write one for all of us once you get the layout up and going.  :thumbu
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Ar-ras


Relvinian

Quote from: hutch-- on May 11, 2006, 10:43:36 AM
Ar-ras,

You are free to write one for all of us once you get the layout up and going.  :thumbu

I do have a un-zip ASM routines to read a .ZIP file and extract a file out of it by filename or index into the .zip file.  It is VERY fast. I use these routines for a "skinnable" library that I use (which a .ZIP file has all the images the different windows use -- like, button, scrollbar, listview, etc).

I haven't written any compression routines in assembly  but I can share the de-compression if people are interested.

Relvinian

Casper

Relvinian,
Is it similar to the one Greg posted as a result of a request from PBrennick?  I use that procedured in a CVS code vault style installation project where it download and installs the complete program from a console window and it handles files that are almost 4 meg.

Casper


Relvinian

No, this doesn't use any IO other then reading the file off the disk.  Basic synopsis of what my unzip library routines do are:

1) Reads the whole .zip file into memory.
2) You call one of two functions -- ExtractZipByIndex or ExtractZipByName.  You pass it a pointer to a HGLOBAL handle so it can allocate the memory and unzip the data into that handle. The reason I use a HGLOBAL is because of the easy transportation into image processing by Windows since most of my stuff deals with images.

My unzipping routines don't do anymore then that. You would have to write your own IO routines to write the data back to disk once unzipped, etc.

Relvinian

Casper

Relvinian,
I would not mind seeing an example.  Right now, I am kina stuck with this DLL which would be great to get rid of.

Casper

Relvinian

Quote from: Casper on June 20, 2006, 03:55:06 PM
Relvinian,
I would not mind seeing an example.  Right now, I am kina stuck with this DLL which would be great to get rid of.

Casper


Casper,

Sorry I have been out of touch a little bit lately.  I'm trying to wrap up a contract programming job and extremely swamped at the moment.  I will be done with the contract this weekend (July 7th). Then I will see what I can do about getting my code and a very simple example using my code.

Relvinian

Relvinian

This is an update to all that are hoping to see a ASM version of the UNZIPping routines...

At this time I am very swamped but I have attached my full ASM library so you can use, look, abuse, whatever...Feel free to ask questions and I'll answer as soon as humanly possible.

My library routines are very far from being a complete library --- so, please, if you try to compile to source outside of the batch files that I have, you may experience a lot of problems. The ZIP file expects to be extracted to the "root" drive where you have MASM32 installed for best operation.  It will create a directory call ASM and place all my code there (including ANSI/UNICODE/DEBUG/DEBUGU/RELEASE/RELEASEU subdirectories for each LIB project in the ASM directory).

To build the full ASM library, just open a DOS window, change directory to \ASM and type:  ma.bat.  This will build all my source code that I have (ANSI and UNICODE) versions both in DEBUG and RELEASE.  All .LIB files for use in your own projects will be in the LIB folder. All header files are in the INCLUDES folders.

Again, if you have questions, let me know. I'll try to get a simple application that uses the ZIP library so you can see how easy it is to use.  There are only 4 functions:
zaOpenArchive
zaLoadEntryByName
zaLoadEntryByIndex
zaCloseArchive

Relvinian

[attachment deleted by admin]

six_L

an excellent asm library. :U
regards