You are not logged in.
Time for something a bit bigger...
.gml file in plaintext
Dropbox mirror of .gml file
scr_juju_bits_write_start( buffer )
scr_juju_bits_write( buffer, value, bits )
scr_juju_bits_write_end( buffer )
scr_juju_bits_read_start ( buffer )
scr_juju_bits_read( buffer, bits )
scr_juju_bits_read_end( buffer )
scr_juju_bits_peek( buffer, offset, bits )
scr_juju_bits_lzw_encode( buffer, bits )
scr_juju_bits_lzw_decode( buffer, bits )
LZW is used in GIF encoding, amongst other things. Whilst newer compression techniques have largely supplanted LZW, it's still used because of its flexibility. English text can typically be reduced to around half its size. These scripts work best in YYC. A 1mb file can be encoded in about a second, decoding is slower and takes about 1.5 seconds.
Last edited by Juju (2016-03-24 18:03:41)
Offline
This looks very, very interesting but ... um ... incomplete? I see some bit bashing but none of the scripts you listed (or perhaps a couple of them with slightly different names).
Abusing forum power since 1986.
Offline
Oh balls, uploaded (and copy-pasted) the wrong file. Take two!
Offline