|
FastLED 3.10.6
|
|
inline |
Convert an untrusted integer to a port number.
value lies in [1, 65535], otherwise nullopt. Callers must surface the empty case as an error rather than substituting a default, since a wrong port is indistinguishable from a working one until the connection fails. Definition at line 35 of file port.h.
References kMaxPort, fl::nullopt, and fl::type_rank< T >::value.