Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_Hook.cpp
Chris Gagnon 9f1505e469 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor)
#rb none

[CL 6671275 by Chris Gagnon in Dev-Editor branch]
2019-05-29 20:48:56 -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;
}