v0.3.0 (imcompatible with previous versions due to switch to 4-byte
chunk lengths!)