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