blob: 387fabaa6831199c5715bc8e37ef48f7305ae67d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
#ifndef _SIGFORMAT_H
#define _SIGFORMAT_H
#include "invokeutil.h"
#include "field.h"
#define SIG_INC 256
class SigFormat
{
public:
SigFormat();
//@GENERICS: the owning type handle is required because pMeth may be shared between instantiations
SigFormat(MethodDesc* pMeth, TypeHandle owner, BOOL fIgnoreMethodName = false);
SigFormat(MetaSig &metaSig, LPCUTF8 memberName, LPCUTF8 className = NULL, LPCUTF8 ns = NULL);
~SigFormat();
const char * GetCString();
const char * GetCStringParmsOnly();
void AddType(TypeHandle th);
protected:
void FormatSig(MetaSig &metaSig, LPCUTF8 memberName, LPCUTF8 className = NULL, LPCUTF8 ns = NULL);
char* _fmtSig;
size_t _size;
size_t _pos;
void AddString(LPCUTF8 s);
void AddTypeString(Module* pModule, SigPointer sig, const SigTypeContext *pTypeContext);
};
#endif // _SIGFORMAT_H
|