pad method

  1. @pragma('vm:prefer-inline')
void pad(
  1. int howManyBytes
)

Zero-pads the buffer, which may be required for some struct layouts.

Implementation

@pragma('vm:prefer-inline')
void pad(int howManyBytes) {
  for (var i = 0; i < howManyBytes; i++) {
    putUint8(0);
  }
}