BloombergLP::bdlma::MemoryBlockDescriptor::setAddressAndSize

Set the address and size of the memory block described by this object.

Synopsis

Declared in <bdlma_memoryblockdescriptor.h>

void
setAddressAndSize(
    void* address,
    size_type size);

Description

Set the address and size of the memory block described by this object to the specified address and size. The behavior is undefined if address' is 0 but size` is not also 0.

Parameters

NameDescription
addressaddress of the memory block
sizesize of the memory block in bytes