summaryrefslogtreecommitdiff
path: root/src/classlibnative/bcltype/stringbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/classlibnative/bcltype/stringbuffer.h')
-rw-r--r--src/classlibnative/bcltype/stringbuffer.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/classlibnative/bcltype/stringbuffer.h b/src/classlibnative/bcltype/stringbuffer.h
new file mode 100644
index 0000000000..4c151ef166
--- /dev/null
+++ b/src/classlibnative/bcltype/stringbuffer.h
@@ -0,0 +1,38 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more 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