ReactOS 0.4.15-dev-8219-ge8b88cf
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.

Functions

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

Function Documentation

◆ RosSymGetRawData()

VOID RosSymGetRawData ( PROSSYM_INFO  RosSymInfo,
PVOID  RawData 
)

Definition at line 23 of file getraw.c.

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

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