diff options
Diffstat (limited to 'src/classlibnative/bcltype/stringbuffer.h')
-rw-r--r-- | src/classlibnative/bcltype/stringbuffer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/classlibnative/bcltype/stringbuffer.h b/src/classlibnative/bcltype/stringbuffer.h new file mode 100644 index 0000000000..ba1cd1702f --- /dev/null +++ b/src/classlibnative/bcltype/stringbuffer.h @@ -0,0 +1,39 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// +// +// File: StringBuffer.h +// + +// +// Purpose: Contains types and method signatures for the +// StringBuffer class. +// +// Each function that we call through native only gets one argument, +// which is actually a pointer to it's stack of arguments. Our structs +// for accessing these are defined below. +// + +// + +#ifndef _STRINGBUFFER_H_ +#define _STRINGBUFFER_H_ + +#define CAPACITY_LOW 10000 +#define CAPACITY_MID 15000 +#define CAPACITY_HIGH 20000 +#define CAPACITY_FIXEDINC 5000 +#define CAPACITY_PERCENTINC 1.25 + +class COMStringBuffer { + +public: + // + // NATIVE HELPER METHODS + // + static FCDECL3(void, ReplaceBufferInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newLength) WCHAR* newBuffer, INT32 newLength); + static FCDECL3(void, ReplaceBufferAnsiInternal, StringBufferObject* thisRefUNSAFE, __in_ecount(newCapacity) CHAR* newBuffer, INT32 newCapacity); +}; + +#endif // _STRINGBUFFER_H |