aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/string.goc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/string.goc')
-rw-r--r--src/pkg/runtime/string.goc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/runtime/string.goc b/src/pkg/runtime/string.goc
index 5d472208bf..b79acbe1c2 100644
--- a/src/pkg/runtime/string.goc
+++ b/src/pkg/runtime/string.goc
@@ -102,6 +102,13 @@ runtime·gostringnocopy(byte *str)
return s;
}
+void
+runtime·cstringToGo(byte *str, String s)
+{
+ s = runtime·gostringnocopy(str);
+ FLUSH(&s);
+}
+
String
runtime·gostringw(uint16 *str)
{