[Include] pawn-array-view: view and mutate multi-dimensional pawn arrays easily - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Include] pawn-array-view: view and mutate multi-dimensional pawn arrays easily (
/showthread.php?tid=659815)
pawn-array-view: view and mutate multi-dimensional pawn arrays easily -
Yashas - 17.10.2018
pawn-array-view
pawn-array-view is an efficient C++ library that abstracts the
complex memory layout of multi-dimensional pawn arrays and provides an intuitive C/++ array-like interface for dealing with them. The name suggests that the library only allows read-only access to the arrays but that's not true; you can access and modify the arrays. Any decent C++ compiler will be able to optimize off all access and modifications to the arrays into simple pointer arithmetic.
Links
Re: pawn-array-view: view and mutate multi-dimensional pawn arrays easily -
IllidanS4 - 17.10.2018
Nicely made. Too bad it's not trivial to retrieve the length of the array.
Re: pawn-array-view: view and mutate multi-dimensional pawn arrays easily -
SyS - 17.10.2018
Wow this is very useful