// CommonSize returns sizeof(Type) for a compilation target with a given ptrSize func CommonSize(ptrSize int) int { … } // StructFieldSize returns sizeof(StructField) for a compilation target with a given ptrSize func StructFieldSize(ptrSize int) int { … } // UncommonSize returns sizeof(UncommonType). This currently does not depend on ptrSize. // This exported function is in an internal package, so it may change to depend on ptrSize in the future. func UncommonSize() uint64 { … } // TFlagOff returns the offset of Type.TFlag for a compilation target with a given ptrSize func TFlagOff(ptrSize int) int { … } // ITabTypeOff returns the offset of ITab.Type for a compilation target with a given ptrSize func ITabTypeOff(ptrSize int) int { … }