本文整理汇总了C++中Brh::Extract方法的典型用法代码示例。如果您正苦于以下问题:C++ Brh::Extract方法的具体用法?C++ Brh::Extract怎么用?C++ Brh::Extract使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Brh
的用法示例。
在下文中一共展示了Brh::Extract方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void STDCALL DvProviderAvOpenhomeOrgRadio1GetPropertyIdArray(THandle aProvider, char** aValue, uint32_t* aValueLen)
{
Brh buf;
reinterpret_cast<DvProviderAvOpenhomeOrgRadio1C*>(aProvider)->GetPropertyIdArray(buf);
*aValueLen = buf.Bytes();
*aValue = (char*)buf.Extract();
}
示例2: DvInvocationReadBinary
int32_t DvInvocationReadBinary(DvInvocationC aInvocation, const char* aName, uint8_t** aData, uint32_t* aLen)
{
IDviInvocation* invocation = InvocationFromHandle(aInvocation);
try {
Brh value;
invocation->InvocationReadBinary(aName, value);
*aLen = value.Bytes();
*aData = (uint8_t*)value.Extract();
}
catch (InvocationError&) {
return -1;
}
return 0;
}
示例3: WaitForDeviceDiscovery
void CpDevices::WaitForDeviceDiscovery()
{
(void)iAddedSem.Clear();
iAddedSem.Wait(30*1000); // allow up to 30 seconds to issue the msearch and receive a response
// check that we not only have a device but that its at a different location from previously
ASSERT(iDevices.size() == 1);
CpDevice* device = iDevices[0];
Brh locationBuf;
ASSERT(device->GetAttribute("Upnp.Location", locationBuf));
const TChar* location = locationBuf.Extract();
if (iLocation != NULL) {
ASSERT(strcmp(location, iLocation) != 0);
}
iLocation = location;
}
示例4: DvDeviceStandardGetResourceManagerUri
void STDCALL DvDeviceStandardGetResourceManagerUri(DvDeviceC aDevice, THandle aAdapter, char** aUri, uint32_t* aLen)
{
Brh uri;
NetworkAdapter* nif = (NetworkAdapter*)aAdapter;
ASSERT(nif != NULL);
reinterpret_cast<DvDeviceStandard*>(DviDeviceC::DeviceFromHandle(aDevice))->GetResourceManagerUri(*nif, uri);
if (uri.Bytes() == 0) {
*aUri = NULL;
*aLen = 0;
}
else {
*aLen = uri.Bytes();
*aUri = (char*)uri.Extract();
}
}
示例5: stateStr
void ControlPointProxy::CPUpnpAv::upnpAvPause()
{
Brh state;
Brh dummy;
if (iIsActive)
{
iUpnpAvProxy->SyncGetTransportInfo(0, state, dummy, dummy);
string stateStr(state.Extract());
if (canPause(stateStr))
{
iUpnpAvProxy->SyncPause(0);
}
}
}