Raised This Month: $12 Target: $400
 3% 

[EXTENSION] IntMaps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kidfearless
Junior Member
Join Date: Jun 2017
Old 03-31-2020 , 15:16   [EXTENSION] IntMaps
Reply With Quote #1

I decided to make this extension after seeing Illusion9's stock for intmaps using stringmaps. It's probably not faster than stringmaps but was a fun project to work on. Big thanks to xutaxkamay for teaching me how to build sourcemod extensions.

It has a couple of benefits over normal stringmaps in that arrays, cells, and strings are stored separately from each other and so their keys can overlap.
String and array sizes are tracked and so you can get the size of the buffer needed before retrieving them.
It comes with 3 callback functions to easily iterate over the values and passes copies and sizes along with them.

I only have tested this on Windows but it should work the same on Linux... hopefully.

Download Link:
https://github.com/kidfearless/intMaps_ext/releases

Source:
https://github.com/kidfearless/intMaps_ext
kidfearless is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode