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 102 of file net.hpp.

Member Function Documentation

◆ FromRaw()

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

Definition at line 106 of file net.hpp.

107 {
108 MACAddressStr s{};
109 raw.ToString(s.str);
110 return s;
111 }

◆ ToRaw()

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

Definition at line 113 of file net.hpp.

114 {
115 return MACAddressRaw::FromString(str);
116 }

Field Documentation

◆ str

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

Definition at line 104 of file net.hpp.

104{};

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