memcached binary protocol parser and encoder