{"id":15049,"date":"2024-07-25T21:31:58","date_gmt":"2024-07-25T12:31:58","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=15049"},"modified":"2024-07-25T22:33:34","modified_gmt":"2024-07-25T13:33:34","slug":"%ea%b0%92%ec%9d%b4-%ec%a0%80%ec%9e%a5%eb%90%9c-%eb%a9%94%eb%aa%a8%eb%a6%ac-%ec%a3%bc%ec%86%8c-%ec%96%bb%ea%b8%b0-%ed%8a%b9%ec%a0%95-%eb%a9%94%eb%aa%a8%eb%a6%ac-%ec%a3%bc%ec%86%8c%ec%97%90-%ec%a0%80","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=15049","title":{"rendered":"\uac12\uc774 \uc800\uc7a5\ub41c \uba54\ubaa8\ub9ac \uc8fc\uc18c \uc5bb\uae30, \ud2b9\uc815 \uba54\ubaa8\ub9ac \uc8fc\uc18c\uc5d0 \uc800\uc7a5\ub41c \uac12 \uc5bb\uae30"},"content":{"rendered":"<p>\uc694\uc998 \uac19\uc740 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c \uba54\ubaa8\ub9ac\uc758 \uc8fc\uc18c\ub97c \uc9c1\uc811 \uc5bb\uace0 \ud574\ub2f9 \uba54\ubaa8\ub9ac\uc5d0 \uc800\uc7a5\ub41c \uac12\uc744 \uc77d\ub294 \ucf54\ub4dc\ub97c &#8230;? \ub7ec\uc2a4\ud2b8 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc5d0\uc11c &#8230;<\/p>\n<p>\uba3c\uc800 \uc5b4\ub5a4 \uac12\uc5d0 \ub300\ud55c \uba54\ubaa8\ub9ac \uc8fc\uc18c\ub97c \uc5bb\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\">\r\nfn main() {\r\n    let a = 3224;\r\n    let mut memory_location = (&a as *const i32) as usize;\r\n    \r\n    println!(\"\ub370\uc774\ud130 \uc800\uc7a5 \uba54\ubaa8\ub9ac \uc8fc\uc18c : {}\", memory_location);\r\n<\/pre>\n<p>memory_location\uc774 3224 \uac12\uc774 \ubc14\uc778\ub529\ub41c a\uc758 \uc8fc\uc18c\uac12\uc744 \ub2f4\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc81c memory_location \uac12(\uc8fc\uc18c)\uc5d0 \uc800\uc7a5\ub41c \uac12\uc744 \uc77d\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"rust\">\r\n    unsafe  {\r\n        let v = *(memory_location as *const i32);\r\n        println!(\"\uba54\ubaa8\ub9ac \uc8fc\uc18c({memory_location})\uc5d0 \uc800\uc7a5\ub41c \uac12: {}\", v);\r\n\r\n        memory_location += 4;\r\n        let v = *(memory_location as *const i32);\r\n        println!(\"\uba54\ubaa8\ub9ac \uc8fc\uc18c({memory_location})\uc5d0 \uc800\uc7a5\ub41c \uac12: {}\", v);\r\n    }\r\n}\r\n<\/pre>\n<p>\uba54\ubaa8\ub9ac \uc8fc\uc18c\ub97c \ud1b5\ud55c \uac12\uc758 \uc9c1\uc811\uc801 \ucc38\uc870\ub294 \ub9e4\uc6b0 \ub9e4\uc6b0 \uc704\ud5d8\ud55c \ud589\uc704\uc774\ubbc0\ub85c \ubc18\ub4dc\uc2dc unsafe \ucf54\ub4dc\uc784\uc744 \uba85\uc2dc\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc694\uc998 \uac19\uc740 \uac1c\ubc1c \ud658\uacbd\uc5d0\uc11c \uba54\ubaa8\ub9ac\uc758 \uc8fc\uc18c\ub97c \uc9c1\uc811 \uc5bb\uace0 \ud574\ub2f9 \uba54\ubaa8\ub9ac\uc5d0 \uc800\uc7a5\ub41c \uac12\uc744 \uc77d\ub294 \ucf54\ub4dc\ub97c &#8230;? \ub7ec\uc2a4\ud2b8 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc5d0\uc11c &#8230; \uba3c\uc800 \uc5b4\ub5a4 \uac12\uc5d0 \ub300\ud55c \uba54\ubaa8\ub9ac \uc8fc\uc18c\ub97c \uc5bb\ub294 \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. fn main() { let a = 3224; let mut memory_location = (&#038;a as *const i32) as usize; println!(&#8220;\ub370\uc774\ud130 \uc800\uc7a5 \uba54\ubaa8\ub9ac \uc8fc\uc18c : {}&#8221;, memory_location); memory_location\uc774 3224 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=15049\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\uac12\uc774 \uc800\uc7a5\ub41c \uba54\ubaa8\ub9ac \uc8fc\uc18c \uc5bb\uae30, \ud2b9\uc815 \uba54\ubaa8\ub9ac \uc8fc\uc18c\uc5d0 \uc800\uc7a5\ub41c \uac12 \uc5bb\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147],"tags":[],"class_list":["post-15049","post","type-post","status-publish","format-standard","hentry","category-rust"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/15049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15049"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/15049\/revisions"}],"predecessor-version":[{"id":15052,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/15049\/revisions\/15052"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15049"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}