padMsg function
Implementation
Uint16List padMsg(int capacity, Uint16List msg) {
Uint16List padded = Uint16List(capacity);
for (int i = 0; i < msg.length; ++i) {
padded[i] = msg[i];
}
return padded;
}
Uint16List padMsg(int capacity, Uint16List msg) {
Uint16List padded = Uint16List(capacity);
for (int i = 0; i < msg.length; ++i) {
padded[i] = msg[i];
}
return padded;
}