[Plugin] PAWN memory access plugin
#17

Fast compilation and reduced AMX size was not the goal of this plugin. This plugin simply allows you to allocate and free blocks of memory in runtime, that being said if you have a situation where you need to store "n" amount of cells, where "n" is indeterminate at compilation, this is where you want to allocate in runtime. That is the side effect of reducing AMX sizes. If you use this plugin properly, you don't need to do a workaround for allocating indeterminate array sizes at compilation by using very large arrays. C allocation itself is very fast, and any application that depends on indeterminate memory allocation at compilation (even the AMX virtual machine itself) uses C allocation internally. The reason why this plugin exists alogside its first iteration is because it fixes many use issues with secure memory allocation and user experience by introducing a way better syntax, explained in its documentation. The first iteration still exists because of compatibility reasons for older scripts.

About that tutorial, this was written for the first iteration of the plugin alongside a version of linked lists, which only runs on the first iteration of the plugin, which should be avoided completly.
https://sampforum.blast.hk/showthread.php?tid=645193 and https://sampforum.blast.hk/showthread.php?tid=645194 are releases that work with the second plugin iteration.
Reply


Messages In This Thread
PAWN memory access plugin - by BigETI - 21.11.2017, 12:38
Re: PAWN memory access plugin - by StrikerZ - 21.11.2017, 13:52
Re: PAWN memory access plugin - by IlanZ - 21.11.2017, 16:19
Re: PAWN memory access plugin - by TommyB - 21.11.2017, 16:26
Re: PAWN memory access plugin - by DimaShift - 21.11.2017, 17:02
Re: PAWN memory access plugin - by Kaperstone - 21.11.2017, 18:26
Re: PAWN memory access plugin - by BigETI - 22.11.2017, 04:53
Re: PAWN memory access plugin - by Whitetiger - 23.11.2017, 04:49
Re: PAWN memory access plugin - by BigETI - 23.11.2017, 11:44
Re: PAWN memory access plugin - by DavidZvla - 27.02.2018, 01:29
Re: PAWN memory access plugin - by iKarim - 27.02.2018, 05:02
Re: PAWN memory access plugin - by v1k1nG - 22.03.2018, 15:18
Re: PAWN memory access plugin - by Ritzy2K - 22.03.2018, 15:33
Re: PAWN memory access plugin - by v1k1nG - 22.03.2018, 15:52
Re: PAWN memory access plugin - by BigETI - 22.03.2018, 19:59
Re: PAWN memory access plugin - by Kaperstone - 23.03.2018, 15:34
Re: PAWN memory access plugin - by BigETI - 24.03.2018, 08:06
Re: PAWN memory access plugin - by Locky_ - 24.03.2018, 10:20
Re: PAWN memory access plugin - by BigETI - 24.03.2018, 12:03
Re: PAWN memory access plugin - by Gammix - 30.03.2018, 19:04
Re: PAWN memory access plugin - by BigETI - 31.03.2018, 00:24
Re: PAWN memory access plugin - by Gammix - 31.03.2018, 01:28
Re: PAWN memory access plugin - by BigETI - 01.04.2018, 19:42
Re: PAWN memory access plugin - by TommyB - 02.04.2018, 06:17
Re: PAWN memory access plugin - by Zeus666 - 16.04.2018, 19:14
Re: PAWN memory access plugin - by BigETI - 17.04.2018, 01:28
Re: PAWN memory access plugin - by JR_Junior - 11.05.2018, 01:06
Re: PAWN memory access plugin - by BigETI - 11.05.2018, 09:06
Re: PAWN memory access plugin - by JR_Junior - 11.05.2018, 15:30
Re: PAWN memory access plugin - by Kaperstone - 27.05.2018, 23:21
Re: PAWN memory access plugin - by BigETI - 28.05.2018, 14:33
Re: PAWN memory access plugin - by BigETI - 16.08.2018, 08:21
Re: PAWN memory access plugin - by RichKiez - 21.08.2018, 16:19
Re: PAWN memory access plugin - by [WSF]ThA_Devil - 21.08.2018, 17:18
Re: PAWN memory access plugin - by PGaming - 08.09.2018, 13:51
Re: PAWN memory access plugin - by Dayrion - 08.09.2018, 13:53
Re: PAWN memory access plugin - by cuber - 24.01.2020, 19:55
Re: PAWN memory access plugin - by PaulinSAMP - 16.06.2020, 21:50

Forum Jump:


Users browsing this thread: 3 Guest(s)