in reply to Re: pack unpack charcount repetition
in thread pack unpack charcount repetition
or as bits:[0000,1100,1000,1110,0001,0000,1000,1100,1010,1100,0000,1000,1100,0010 +,0100,0000,1100,1100,1010,1100,0000]
then convert to 12 bytes (filling the last 4 bits with 1111 to tag padding). to get the data back you need to chomp 4 bits per array slot until done or you hit 11110000110010001110000100001000110010101100000010001100001001000000110011 +00101011000000
stored in a file is 58 bytes. As long as the set of unique numbers stays fixed or less than 15 you can save space storing in this way and the larger the array the more savings you will see.0,54,28,76,126,0,28,54,62,54,0,28,54,60,48,0,54,54,62,54,0
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: pack unpack charcount repetition
by denthijs (Acolyte) on Jun 10, 2003 at 09:23 UTC |