From dd9b336de01fe4e10644ca12b3ab6c641df314c0 Mon Sep 17 00:00:00 2001 From: jiulinxiri Date: Fri, 7 Jan 2022 11:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 08 类.playground/Resources/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/08 类.playground/Resources/README.md b/08 类.playground/Resources/README.md index 402c552..1ceb02c 100644 --- a/08 类.playground/Resources/README.md +++ b/08 类.playground/Resources/README.md @@ -129,6 +129,7 @@ s1 = Size(width: 11, height: 22) * libsystem_malloc.dylib:malloc **在Mac、iOS中的malloc函数分配的内存大小总是16的倍数** + 通过 `class_getInstanceSize` 可以得知:类的对象至少需要占用多少内存 ```swift