libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::MACAddressStr Struct Reference

字符串形式 MAC 地址 / MAC address as string More...

#include <net.hpp>

Public Member Functions

MACAddressRaw ToRaw () const
 

Static Public Member Functions

static MACAddressStr FromRaw (const MACAddressRaw &raw)
 

Data Fields

char str [MACADDR_STRLEN] {}
 

Detailed Description

字符串形式 MAC 地址 / MAC address as string

Definition at line 93 of file net.hpp.

Member Function Documentation

◆ FromRaw()

static MACAddressStr LibXR::MACAddressStr::FromRaw ( const MACAddressRaw & raw)
inlinestatic

Definition at line 97 of file net.hpp.

98 {
99 MACAddressStr s{};
100 raw.ToString(s.str);
101 return s;
102 }

◆ ToRaw()

MACAddressRaw LibXR::MACAddressStr::ToRaw ( ) const
inline

Definition at line 104 of file net.hpp.

104{ return MACAddressRaw::FromString(str); }

Field Documentation

◆ str

char LibXR::MACAddressStr::str[MACADDR_STRLEN] {}

Definition at line 95 of file net.hpp.

95{};

The documentation for this struct was generated from the following file: