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.1.tar.gz
(8.2 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.1.tar.gz.
File metadata
- Download URL: ramocate-1.0.0.1.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30d101ce92e9c5e5e64ec279136b97b4f517c074e1f2de89d4befe9932f76027
|
|
| MD5 |
3499641ce5d766ae50d1efb919ad76e8
|
|
| BLAKE2b-256 |
5b9ffe98e441426cfdc890e42e0ace57a180ef6a94860727632540a8a19b45f5
|
File details
Details for the file ramocate-1.0.0.1-py3-none-any.whl.
File metadata
- Download URL: ramocate-1.0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 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 |
303e014375ed3aa9b3c357d36214b4c7961b23c43ea57fb0ed14281e2317f359
|
|
| MD5 |
f4b8f3e81fd9a1881dd2b13eb16b82cd
|
|
| BLAKE2b-256 |
f133128d9745ea17cdf1812b361845ce41458db4794fdd6a373ace38c63e3ca8
|