ReactOS  0.4.15-dev-3303-g1ade494
getraw.c File Reference
#include <ntdef.h>
#include <reactos/rossym.h>
#include "rossympriv.h"
Include dependency graph for getraw.c:

Go to the source code of this file.

Macros

#define NTOSAPI
 

Functions

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

Macro Definition Documentation

◆ NTOSAPI

#define NTOSAPI

Definition at line 10 of file getraw.c.

Function Documentation

◆ RosSymGetRawData()

VOID RosSymGetRawData ( PROSSYM_INFO  RosSymInfo,
PVOID  RawData 
)

Definition at line 24 of file getraw.c.

25 {
26  PROSSYM_HEADER RosSymHeader;
27 
28  RosSymHeader = (PROSSYM_HEADER) RawData;
29  RosSymHeader->SymbolsOffset = sizeof(ROSSYM_HEADER);
30  RosSymHeader->SymbolsLength = RosSymInfo->SymbolsCount * sizeof(ROSSYM_ENTRY);
31  RosSymHeader->StringsOffset = RosSymHeader->SymbolsOffset + RosSymHeader->SymbolsLength;
32  RosSymHeader->StringsLength = RosSymInfo->StringsLength;
33 
34  memcpy((char *) RawData + RosSymHeader->SymbolsOffset, RosSymInfo->Symbols,
35  RosSymHeader->SymbolsLength);
36  memcpy((char *) RawData + RosSymHeader->StringsOffset, RosSymInfo->Strings,
37  RosSymHeader->StringsLength);
38 }
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 16 of file getraw.c.

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