c2go.go
@@ -62,3 +62,17 @@ } return } // CPlateIDPosArrayToGoArray convert CPlateIDResult array to go func CPlateIDPosArrayToGoArray(cArray unsafe.Pointer, count int) (goArray []CPlateIDResult) { p := uintptr(cArray) for i := 0; i < count; i++ { j := *(*CPlateIDResult)(unsafe.Pointer(p)) goArray = append(goArray, j) p += unsafe.Sizeof(j) } return }