copyBytes function

void copyBytes(
  1. Uint8List dest,
  2. int offset,
  3. Uint8List src
)

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];
    }
  }
}