Convenience constructor for creating an int based RawSocketOption.
factory RawSocketOption.fromInt(int level, int option, int value) { if (value == null) { value = 0; } final Uint8List list = Uint8List(4); final buffer = ByteData.view(list.buffer); buffer.setInt32(0, value); return RawSocketOption(level, option, list); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/RawSocketOption/RawSocketOption.fromInt.html