![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IPv4SubnetMask.h>
Public Member Functions | |
| FIPv4SubnetMask () | |
| FIPv4SubnetMask (uint8 InA, uint8 InB, uint8 InC, uint8 InD) | |
| FIPv4SubnetMask (uint32 InValue) | |
| bool | operator== (const FIPv4SubnetMask &Other) const |
| bool | operator!= (const FIPv4SubnetMask &Other) const |
| FIPv4SubnetMask | operator~ () const |
| EIPv4SubnetClasses::Type | GetClass () const |
| NETWORKING_API FString | ToString () const |
| FText | ToText () const |
Static Public Member Functions | |
| static NETWORKING_API bool | Parse (const FString &MaskString, FIPv4SubnetMask &OutMask) |
Public Attributes | ||
| union { | ||
| struct { | ||
| uint8 A | ||
| uint8 B | ||
| uint8 C | ||
| uint8 D | ||
| } | ||
| int32 Value | ||
| }; | ||
Friends | |
| FArchive & | operator<< (FArchive &Ar, FIPv4SubnetMask &SubnetMask) |
| uint32 | GetTypeHash (const FIPv4SubnetMask &SubnetMask) |
Implements an IPv4 subnet mask.
|
inline |
Default constructor.
Creates and initializes a new IPv4 subnet mask with the specified components.
The created subnet mask has the value A.B.C.D.
| InA | The first component. |
| InB | The second component. |
| InC | The third component. |
| InD | The fourth component. |
|
inline |
Creates and initializes a new IPv4 subnet mask with the specified value.
| InValue | The address value (in host byte order). |
|
inline |
Gets the subnet class that this mask specifies.
|
inline |
Compares this subnet mask with the given address for inequality.
| Other | The subnet mask to compare with. |
|
inline |
Compares this subnet mask with the given mask for equality.
| Other | The subnet mask to compare with. |
|
inline |
Returns an inverted subnet mask.
|
static |
Converts a string to an IPv4 subnet mask.
| MaskString | The string to convert. |
| OutMask | Will contain the parsed subnet mask. |
| FString FIPv4SubnetMask::ToString | ( | ) | const |
|
inline |
|
friend |
Gets the hash for specified IPv4 subnet mask.
| SubnetMask | The subnet mask to get the hash for. |
|
friend |
Serializes the given subnet mask from or into the specified archive.
| Ar | The archive to serialize from or into. |
| SubnetMask | The subnet mask to serialize. |
| union { ... } FIPv4SubnetMask |
| uint8 FIPv4SubnetMask::A |
| uint8 FIPv4SubnetMask::B |
| uint8 FIPv4SubnetMask::C |
| uint8 FIPv4SubnetMask::D |
| int32 FIPv4SubnetMask::Value |
The subnet mask value in host byte order.