ReactOS 0.4.16-dev-340-g0540c21
getraw.c File Reference
#include <ntddk.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
#include <debug.h>
Include dependency graph for getraw.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

ULONG RosSymGetRawDataLength (PROSSYM_INFO RosSymInfo)
 
VOID RosSymGetRawData (PROSSYM_INFO RosSymInfo, PVOID RawData)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 14 of file getraw.c.

Function Documentation

◆ RosSymGetRawData()

VOID RosSymGetRawData ( PROSSYM_INFO  RosSymInfo,
PVOID  RawData 
)

Definition at line 26 of file getraw.c.

27{
28 PROSSYM_HEADER RosSymHeader;
29
30 RosSymHeader = (PROSSYM_HEADER) RawData;
31 RosSymHeader->SymbolsOffset = sizeof(ROSSYM_HEADER);
32 RosSymHeader->SymbolsLength = RosSymInfo->SymbolsCount * sizeof(ROSSYM_ENTRY);
33 RosSymHeader->StringsOffset = RosSymHeader->SymbolsOffset + RosSymHeader->SymbolsLength;
34 RosSymHeader->StringsLength = RosSymInfo->StringsLength;
35
36 memcpy((char *) RawData + RosSymHeader->SymbolsOffset, RosSymInfo->Symbols,
37 RosSymHeader->SymbolsLength);
38 memcpy((char *) RawData + RosSymHeader->StringsOffset, RosSymInfo->Strings,
39 RosSymHeader->StringsLength);
40}
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
struct _ROSSYM_ENTRY ROSSYM_ENTRY
struct _ROSSYM_HEADER ROSSYM_HEADER
struct _ROSSYM_HEADER * PROSSYM_HEADER
unsigned long SymbolsOffset
Definition: rossym.h:20
unsigned long SymbolsLength
Definition: rossym.h:21
unsigned long StringsLength
Definition: rossym.h:23
unsigned long StringsOffset
Definition: rossym.h:22
ULONG SymbolsCount
Definition: rossym.h:124
ULONG StringsLength
Definition: rossym.h:126
PROSSYM_ENTRY Symbols
Definition: rossym.h:123
PCHAR Strings
Definition: rossym.h:125

◆ RosSymGetRawDataLength()

ULONG RosSymGetRawDataLength ( PROSSYM_INFO  RosSymInfo)

Definition at line 18 of file getraw.c.

19{
20 return sizeof(ROSSYM_HEADER)
21 + RosSymInfo->SymbolsCount * sizeof(ROSSYM_ENTRY)
22 + RosSymInfo->StringsLength;
23}
Definition: rossym.h:26