Uses C to get memory functions.
Project description
ramocate
Uses C to get memory functions. (To do some fun stuff ;] )
Functions:
malloc(size: int)
calloc(size: int)
realloc(ptr: int, newsize: int)
free(ptr: int)
Usage:
malloc: Allocates memory in blocks on the heap. RETURNS: (SUCCESS: ptr: id, FAIL: "NULL")
calloc: Allocates memory in blocks on the heap, but sets them all to zero. RETURNS: (SUCCESS: ptr: id, FAIL: "NULL")
realloc: Englarges or shrinks allocated memory. If newsize is set to 0, it will act like free. RETURNS: (SUCCESS: ptr: id, FAIL: "NULL")
free: Frees memory at the pointer. RETURNS (SUCCESS: none, FAIL: none)
WARNING:
Messing with memory is pretty dangerous and WILL crash and or crash other programs if not used properly.
Best Practices:
1# Don't allocate too much memory (malloc, calloc)
2# Don't deallocate more memory than that's in a block (realloc)
3# Don't free memory that has not been allocated by malloc, calloc, ect. (Like py objects).
4# Don't free memory twice. It WILL crash with SIGABRT (signal abort)
4# Don't free random memory. ESPECIALLY with SIP disabled. It WILL crash the other process, or corrupt it!
Also, you can find the original C library at ramocate/compiledlibs/ramocarec.c, the other ones are the compiled version of it used to comunicate python <-> c on different systems (Mac > .dylib, Linux > .so, Windows > .dll).
Rev 1: (Borne Sanders @ 7/9/25, 8:30 PM)
Rev 2: (Borne Sanders @ 10/9/25, 10:00 PM)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ramocate-1.0.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ramocate-1.0.0.tar.gz.
File metadata
- Download URL: ramocate-1.0.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae728f6c593925843aedad4cb8312d4770dc36a2a0c2afb640b6ed87d23b8cfe
|
|
| MD5 |
ec981eb69379a3a07376b684414bd2ea
|
|
| BLAKE2b-256 |
77ce5fbc3e5f6118c4d71d7c2432cb0d275f43eccb2799848ed4f2ef6b6489d5
|
File details
Details for the file ramocate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ramocate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6c53ea98b35abaa2e05d4502c813a99655b35370c7a1385d0a1154796db0d17
|
|
| MD5 |
8ad77916467a9a7eabf6a936a037371d
|
|
| BLAKE2b-256 |
18e4b4e13ad121d6b1180869062d32484deb57adac3e603afffa81eaca5ac9a3
|