reflect: implement support for array types

This commit is contained in:
Ayke van Laethem
2019-08-16 22:08:44 +02:00
committed by Ron Evans
parent bbc3046687
commit c19c738f52
8 changed files with 184 additions and 20 deletions
+3
View File
@@ -16,6 +16,9 @@ var structTypesSidetable byte
//go:extern reflect.structNamesSidetable
var structNamesSidetable byte
//go:extern reflect.arrayTypesSidetable
var arrayTypesSidetable byte
// readStringSidetable reads a string from the given table (like
// structNamesSidetable) and returns this string. No heap allocation is
// necessary because it makes the string point directly to the raw bytes of the