nowadays the function "decode" only with param of filename, Please consider overload the decode function with the param of raw buff.