add struct size and field offsets to reflect data

This commit is contained in:
Damian Gryski
2023-04-15 11:14:37 -07:00
committed by Ron Evans
parent 36bd66a858
commit 4c0fbbfc7f
3 changed files with 17 additions and 26 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ func interfaceTypeAssert(ok bool) {
type structField struct {
typecode unsafe.Pointer // type of this struct field
data *uint8 // pointer to byte array containing name, tag, and 'embedded' flag
offset uint32
data *uint8 // pointer to byte array containing name, tag, and 'embedded' flag
}
// Pseudo function call used during a type assert. It is used during interface