I am trying to copy a C array into a slice:
const spv = try alloc.alloc(u8, c.shaderc_result_get_length(result)); // []u8
const bytes = c.shaderc_result_get_bytes(result); // [*c]const u8
@memcpy(spv, bytes);
But unfortunately I get this error:
error: type '[*c]const u8' does not support field access
I read the docs of @memcpy. Source is a multi item pointer and dest is a slice, and they are both u8 types, so I don't get why this copy does not compile.