Пример #1
0
uint32_t BasicBuffer::AddBuffer( const SmartBufferPtr& buffer, bool add_fixups )
{
    // platform types have to match
    HELIUM_ASSERT(buffer->GetByteOrder() == m_ByteOrder);

    // first bring in all the data from the incoming buffer
    uint32_t return_val = AddBuffer( buffer->GetData(), buffer->GetSize() );

    if (add_fixups)
    {
        // inherit all the incoming / outgoing fixups from this buffer with out new offset
        InheritFixups( buffer, return_val );
    }

    return return_val;
}