toBytes method
Serialize the frame into a byte list.
Implementation
@override
Uint8List toBytes() {
final buffer = Uint8List(length);
final view = ByteData.view(buffer.buffer);
view.setUint8(0, FrameType.mtuProbe.index);
// The rest of the frame is padding, which is implicitly zeros.
return buffer;
}