onArrayCastError
private fn
void onArrayCastError()(string fromType, size_t fromSize, size_t fromLength, string toType, size_t toElemSize) @trustedUsed by __ArrayCast to emit a descriptive error message.
It is a template so it can be used by __ArrayCast in -betterC builds. It is separate from __ArrayCast to minimize code bloat.
Parameters
fromType | name of the type being cast from |
fromSize | total size in bytes of the array being cast from |
fromLength | length of array being cast from |
toType | name of the type being cast to |
toElemSize | element size of array being cast to |