setLengthRight function

Uint8List setLengthRight(
  1. Uint8List msg,
  2. int length
)

Right Pads an Uint8List with leading zeros till it has length bytes. Or it truncates the beginning if it exceeds.

Implementation

Uint8List setLengthRight(Uint8List msg, int length) {
  return setLength(msg, length, right: true);
}