Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_Hook.cpp
Rolando Caloca 3f94d93915 Merging //UE4/Dev-Main@6651710 to Dev-Rendering (//UE4/Dev-Rendering)
#rnx
#rb none

[CL 6652356 by Rolando Caloca in Dev-Rendering branch]
2019-05-28 10:22:20 -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;
}