Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
	
	
		"MEM_new" and "MEM_copy" should do the trick.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
	
	
		Update 2.1 contains "MEM_send()", so you can send now data from your server's memory through the internet. Encryption is not required, because it adds unneeded overhead to the function.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 192
	Threads: 2
	Joined: Sep 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by BigETI  Update 2.1 contains "MEM_send()", so you can send now data from your server's memory through the internet. Encryption is not required, because it adds unneeded overhead to the function. | 
 nice feature thanks a lot!
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
 
	
	
	
		
	Posts: 233
	Threads: 46
	Joined: Nov 2011
	
Reputation: 
0
	 
	
	
		The problem is that this plugin is for those who know what to do with it.
I would very much like to use it if I knew how.
In the wiki does not have a clear explanation of how to use, in what part of the GM put, what does each function, what the benefit.
I would like to use it to reduce the memory consumption of the computer, if this is possible, how will I do it?
Thank you.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by JR_Junior  The problem is that this plugin is for those who know what to do with it.
 I would very much like to use it if I knew how.
 | 
 If you are familiar with runtime memory allocation and pointers, then you should know how to use it.
Quote:
| 
					Originally Posted by JR_Junior  In the wiki does not have a clear explanation of how to use, in what part of the GM put, what does each function, what the benefit. | 
 The 
wiki https://github.com/BigETI/pawn-memory/wiki explains every function that is implemented in that plugin.
Quote:
| 
					Originally Posted by JR_Junior  I would like to use it to reduce the memory consumption of the computer, if this is possible, how will I do it?Thank you.
 | 
 This is not a magic memory consumption reducing tool. It's the job of the programmer to optimize their code.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 3,004
	Threads: 12
	Joined: May 2011
	
	
 
	
	
		Can I save enums and/or multi dimensional arrays?
Quote:
| 
					Originally Posted by JR_Junior  I understand now. I have no problems with overuse of memory, my GM is well optimized, but I thought this plugin would further reduce memory consumption.
 It seems to be a great plugin, but for now I have no use for it.
 Thank you!
 | 
 What you're looking for then, are bits and packed strings
Packed strings: 
https://sampforum.blast.hk/showthread.php?tid=480529 (be aware that you tradeoff some performance here, so its up to you where to use it)
rBits: 
https://sampforum.blast.hk/showthread.php?tid=275142
y_bit: 
https://sampforum.blast.hk/showthread.php?tid=489897
Difference between rBits and y_bit: 
http://forum.sa-mp.com/showpost.php?...20&postcount=2
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
	
	
		
Quote:
| 
					Originally Posted by Kaperstone  [...] Can I save enums [...] ? | 
 What do mean by that? A PAWN enumerator is a list of integers. If you are looking for structuring data, you can use 
MEM_struct, which is literally a PAWN enumerator with its tag disabled.
Definition: 
https://github.com/BigETI/pawn-memor.../memory.inc#L9
Example: 
https://github.com/BigETI/pawn-map/b...de/map.inc#L14
Quote:
| 
					Originally Posted by Kaperstone  [...] Can I save [...] multi dimensional arrays? | 
 If you know how to map a multi dimensional array to a contiguous memory block, then yes.
Either with 
MEM_new, 
MEM_new_zero, 
MEM_new_arr or 
MEM_clone.
	
 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,046
	Threads: 29
	Joined: Mar 2010
	
	
 
	
	
		I just want to announce a bug fix update for pawn-memory. Anyone who uses sampctl should be covered with the latest version, if there is no tag or tag 2.0.1 specified in pawn.json for pawn-memory.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 32
	Threads: 12
	Joined: Mar 2018
	
Reputation: 
0
	 
	
	
		I can not find the memory.dll file in your gifthub. Help me