Skip to content

QuantumGate::BTHAddress::TryParse

Karel Donk edited this page Dec 25, 2021 · 1 revision

Attempts to parse a Bluetooth address from a string.

Signature

static bool TryParse(const WChar* addr_str, BTHAddress& addr) noexcept;
static bool TryParse(const String& addr_str, BTHAddress& addr) noexcept;
static bool TryParse(const BinaryBTHAddress& bin_addr, BTHAddress& addr) noexcept;

Parameters

Name Description
addr_str The Bluetooth address in string format.
bin_addr A QuantumGate::BinaryBTHAddress containing the Bluetooth address.
addr The QuantumGate::BTHAddress object to store the parsed value in.

Return values

Returns true if the operation succeeded, otherwise false. Upon successful completion the parsed address will be stored in the addr parameter.

Clone this wiki locally