FFI :: Raw. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Alessandro Ghedini
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~alexbio/
FFI :: Raw. ű×
FFI :: Raw. ¼³¸í
FFI :: RAW´Â Perl¿¡ ´ëÇÑ ¿ø½Ã ±â´É ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. C / XS code.dynamic ±âÈ£¸¦ ÀÛ¼ºÇÒ ÇÊ¿ä¾øÀÌ °øÀ¯ ¶óÀ̺귯¸®¿¡¼ ³» º¸³½ ÇÔ¼ö¿¡ ¾×¼¼½ºÇÏ°í È£ÃâÇÏ¸é ·±Å¸ÀÓ¿¡ ÀÚµ¿À¸·Î ÇØ°á µÉ ¼ö ÀÖÀ¸¹Ç·Î FFI :: RAW¸¦ »ç¿ëÇÏ´Â µ¥ ÇÊ¿äÇÑ À¯ÀÏÇÑ Á¤º¸´Â ´ë»óÀÇ À̸§ (¶Ç´Â °æ·Î)ÀÔ´Ï´Ù. ¶óÀ̺귯¸®, È£Ãâ ÇÒ ÇÔ¼ö À̸§°ú ÇØ´ç ¼¸í (ÇÔ¼ö Æ÷ÀÎÅ͸¦ Àü´ÞÇÒ ¼öµµ ÀÖÀ½).ÀÌ ¸ðµâÀº FFI.SNOPSIS¿Í ¾Æ¹« °ü·ÃÀÌ ¾øÁö¸¸ FFI :: RAW; $ cos = ffi :: raw -> new ( 'libm.so', 'cos', ffi :: raw :: double, # ¹Ýȯ °ª ffi :: raw :: double # arg # 1); $ COS -> ÅëÈ (2.0); Á¦Ç°ÀÇ È¨ÆäÀÌÁö
FFI :: Raw. °ü·Ã ¼ÒÇÁÆ®¿þ¾î