openshot-audio  0.1.7
Public Member Functions | Static Public Member Functions | List of all members
juce::MACAddress Class Reference

#include <juce_core.h>

Public Member Functions

 MACAddress ()
 
 MACAddress (const MACAddress &)
 
MACAddressoperator= (const MACAddress &)
 
 MACAddress (const uint8 bytes[6])
 
const uint8getBytes () const noexcept
 
String toString () const
 
int64 toInt64 () const noexcept
 
bool isNull () const noexcept
 
bool operator== (const MACAddress &) const noexcept
 
bool operator!= (const MACAddress &) const noexcept
 

Static Public Member Functions

static void findAllAddresses (Array< MACAddress > &results)
 

Detailed Description

Represents a MAC network card adapter address ID.

Constructor & Destructor Documentation

◆ MACAddress() [1/3]

MACAddress::MACAddress ( )

Creates a null address (00-00-00-00-00-00).

◆ MACAddress() [2/3]

MACAddress::MACAddress ( const MACAddress other)

Creates a copy of another address.

◆ MACAddress() [3/3]

MACAddress::MACAddress ( const uint8  bytes[6])
explicit

Creates an address from 6 bytes.

Member Function Documentation

◆ findAllAddresses()

static void juce::MACAddress::findAllAddresses ( Array< MACAddress > &  results)
static

Populates a list of the MAC addresses of all the available network cards.

◆ getBytes()

const uint8* juce::MACAddress::getBytes ( ) const
inlinenoexcept

Returns a pointer to the 6 bytes that make up this address.

◆ isNull()

bool MACAddress::isNull ( ) const
noexcept

Returns true if this address is null (00-00-00-00-00-00).

◆ operator!=()

bool MACAddress::operator!= ( const MACAddress other) const
noexcept

◆ operator=()

MACAddress & MACAddress::operator= ( const MACAddress other)

Creates a copy of another address.

◆ operator==()

bool MACAddress::operator== ( const MACAddress other) const
noexcept

◆ toInt64()

int64 MACAddress::toInt64 ( ) const
noexcept

Returns the address in the lower 6 bytes of an int64.

This uses a little-endian arrangement, with the first byte of the address being stored in the least-significant byte of the result value.

◆ toString()

String MACAddress::toString ( ) const

Returns a dash-separated string in the form "11-22-33-44-55-66"


The documentation for this class was generated from the following files: