public static object decode_list(byte[] x, ref int f) { ArrayList r = new ArrayList(); while (x[f] != 'e') { object v = bdecode_rec(x, ref f); r.Add(v); } f += 1; return r; }