copyBytes function
Implementation
void copyBytes(Uint8List dest, int offset, Uint8List src) {
for (int i = 0; i < src.length; i++) {
int destIndex = i + offset;
if (destIndex >= 0 && destIndex < dest.length) {
dest[destIndex] = src[i];
}
}
}