MCPcopy Create free account
hub / github.com/Pulse-Eight/libcec / Unset

Function Unset

src/dotnetlib/CecSharpTypes.h:1320–1333  ·  view source on GitHub ↗

Remove a logical address from this list (if it's set) The address to remove.

Source from the content-addressed store, hash-verified

1318 /// </summary>
1319 /// <param name="address">The address to remove.</param>
1320 void Unset(CecLogicalAddress address)
1321 {
1322 Addresses[(unsigned int)address] = CecLogicalAddress::Unknown;
1323 if (Primary == address) {
1324 Primary = CecLogicalAddress::Unknown;
1325 for (unsigned int iPtr = 0; iPtr < 16; iPtr++) {
1326 if (IsSet((CecLogicalAddress)iPtr))
1327 {
1328 Primary = (CecLogicalAddress)iPtr;
1329 break;
1330 }
1331 }
1332 }
1333 }
1334
1335 /// <summary>
1336 /// The primary (first) address in this list

Callers

nothing calls this directly

Calls 1

IsSetFunction · 0.85

Tested by

no test coverage detected