Skip to content

plessbd/ocflzw-decompress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCF LZW Decompress

Implements "OCF decompresion" as used by Cerner.

Python port of https://gist.github.com/pgodwin/7d66729444173146ad698d154f2b9b6c

from ocflzw_decompress.lzw import LzwDecompress
lzw = LzwDecompress()

uncompressed = lzw.decompress(blob_contents)
for bt in uncompressed:
    uncompressed_text += chr(bt)
uncompressed_text = uncompressed_text.rstrip('\x00')

About

OCF LZW Decompress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages