decodeAll, encodeAll