MCPcopy Create free account
hub / github.com/3Shain/dxmt / RelocateBytecode

Method RelocateBytecode

libs/DXBCParser/BlobContainer.cpp:181–191  ·  view source on GitHub ↗

--------------------------------------------------------------------------------------------------------------------------------- CDXBCParser::RelocateBytecode()

Source from the content-addressed store, hash-verified

179//---------------------------------------------------------------------------------------------------------------------------------
180// CDXBCParser::RelocateBytecode()
181HRESULT CDXBCParser::RelocateBytecode( UINT ByteOffset )
182{
183 if (!m_pHeader || !m_pIndex)
184 {
185 // bad -- has not been initialized yet
186 return E_FAIL;
187 }
188 m_pHeader = (const DXBCHeader*)((const BYTE*)m_pHeader + ByteOffset);
189 m_pIndex = (const UINT32*)((const BYTE*)m_pIndex + ByteOffset);
190 return S_OK;
191}
192
193}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected