Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_Hook.cpp
ben marsh 83bd3cd7c6 Copying //UE4/Dev-Build to Dev-Main (//UE4/Dev-Main)
#rb none
#rnx

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 6631504 in //UE4/Main/...
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) (v365-6733468)

[CL 6748759 by ben marsh in Dev-Anim branch]
2019-05-31 18:06:13 -04:00

29 lines
726 B
C++

// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
#include "LC_Hook.h"
#include "LC_Symbols.h"
uint32_t hook::FindFirstInSection(const symbols::ImageSectionDB* imageSectionDb, const ImmutableString& sectionName)
{
const symbols::ImageSection* imageSection = symbols::FindImageSectionByName(imageSectionDb, sectionName);
if (imageSection)
{
return imageSection->rva;
}
return 0u;
}
uint32_t hook::FindLastInSection(const symbols::ImageSectionDB* imageSectionDb, const ImmutableString& sectionName)
{
const symbols::ImageSection* imageSection = symbols::FindImageSectionByName(imageSectionDb, sectionName);
if (imageSection)
{
return imageSection->rva + imageSection->size;
}
return 0u;
}