| /* go-string-to-int-array.c -- convert a string to an array of ints in Go. |
| Copyright 2010 The Go Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style |
| license that can be found in the LICENSE file. */ |
| __go_string_to_int_array (String str) |
| const unsigned char *pend; |
| struct __go_open_array ret; |
| p += __go_get_rune (p, pend - p, &rune); |
| data = (uint32_t *) runtime_mallocgc (c * sizeof (uint32_t), FlagNoPointers, |
| p += __go_get_rune (p, pend - p, &rune); |
| ret.__values = (void *) data; |