ReactOS  0.4.15-dev-3299-gbe8e5fc
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 NTOSAPI
 
#define NDEBUG
 

Functions

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

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 15 of file getraw.c.

◆ NTOSAPI

#define NTOSAPI

Definition at line 10 of file getraw.c.

Function Documentation

◆ RosSymGetRawData()

VOID RosSymGetRawData ( PROSSYM_INFO  RosSymInfo,
PVOID  RawData 
)

Definition at line 27 of file getraw.c.

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

◆ RosSymGetRawDataLength()

ULONG RosSymGetRawDataLength ( PROSSYM_INFO  RosSymInfo)

Definition at line 19 of file getraw.c.

20 {
21  return sizeof(ROSSYM_HEADER)
22  + RosSymInfo->SymbolsCount * sizeof(ROSSYM_ENTRY)
23  + RosSymInfo->StringsLength;
24 }
Definition: rossym.h:26
struct _ROSSYM_HEADER ROSSYM_HEADER
ULONG StringsLength
Definition: rossym.h:126
ULONG SymbolsCount
Definition: rossym.h:124