TBool CSource::Visible(Bwx& aSystemName, Bwx& aType, Bwx& aName) { aSystemName.Replace(iSystemName); aType.Replace(iType); iLockable.Wait(); aName.Replace(iName); TBool visible = iVisible; iMutex.Signal(); return (visible); }
void Ssdp::CanonicalDomainToUpnp(const Brx& aCanonicalDomain, Bwx& aUpnpDomain) // was UpnpDomain { if (aCanonicalDomain == kUpnpOrg) { aUpnpDomain.Replace(kSchemasUpnpOrg); } else { aUpnpDomain.Replace(aCanonicalDomain); for (TUint i = 0; i < aUpnpDomain.Bytes(); i++) { if (aUpnpDomain[i] == '.') { aUpnpDomain[i] = '-'; } } } }
void FileBrx::Read(Bwx& aBuffer, TUint32 aBytes) { ASSERT(aBytes <= aBuffer.MaxBytes()); TUint32 bytes = ( iCursor + aBytes > Bytes() ? Bytes() - iCursor : aBytes ); aBuffer.Replace(iBuffer->Split(iCursor, bytes)); iCursor += bytes; }
void ReceiverManager2Receiver::TransportState(Bwx& aValue) const { iMutex.Wait(); try { aValue.ReplaceThrow(iTransportState); } catch (BufferOverflow) { aValue.Replace(Brx::Empty()); } iMutex.Signal(); }
void ReceiverManager2Receiver::SenderMetadata(Bwx& aValue) const { iMutex.Wait(); try { aValue.ReplaceThrow(iMetadata); } catch (BufferOverflow) { aValue.Replace(Brx::Empty()); } iMutex.Signal(); }
void DviProtocolUpnp::GetUriDeviceXml(Bwx& aUri, const Brx& aUriBase) { aUri.Replace(aUriBase); aUri.Append(kDeviceXmlName); }