private static void Encode(this stringEncoder s, slice<byte> dst) => func((_, panic, __) => { if (copy(dst, s) != len(s)) { panic("internal error"); } });
private static long Len(this stringEncoder s) { return len(s); }