5 #ifndef HERALD_BLE_ADVERT_PARSER_H
6 #define HERALD_BLE_ADVERT_PARSER_H
8 #include "ble_advert_types.h"
16 namespace BLEAdvertParser {
22 std::vector<BLEAdvertSegment> extractSegments(
const Data& raw, std::size_t offset) noexcept;
27 bool extractTxPower(
const std::vector<BLEAdvertSegment>& segments, std::uint8_t& into) noexcept;
28 std::vector<Data> extractHeraldManufacturerData(
const std::vector<BLEAdvertManufacturerData>& manuData) noexcept;
29 std::vector<BLEAdvertManufacturerData> extractManufacturerData(
const std::vector<BLEAdvertSegment>& segments) noexcept;
30 std::vector<BLEAdvertAppleManufacturerSegment> extractAppleManufacturerSegments(
const std::vector<BLEAdvertManufacturerData>& manuData) noexcept;
37 Data subDataBigEndian(
const Data& data, std::size_t offset, std::size_t length) noexcept;
38 Data subDataLittleEndian(
const Data& data, std::size_t offset, std::size_t length) noexcept;
DataRef<> Data
Defaults references to Data to equal the DataRef with the default Memory Arena dimensions,...
Definition: data.h:506
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15