Channel circle › core 2 Memory
2 Memory: core-level functions
The functions that make up the core channel itself.
241 functions
| Signature | Purpose | Source | Scope |
|---|---|---|---|
| struct BufferChannel * OpenBufferChannel(void) | Standard runtime: Join/Leave/Open/Close/Read/Write (bounded mailbox ring, refuse-on-full; defines.h). | BufferChannel.c:181 | public |
| void CloseBufferChannel(struct BufferChannel *bc) | Frees what the channel owns: its data block (AllocMem'd) and the instance slot, which is reused by the next Open. | BufferChannel.c:193 | public |
| struct Buffer * GetBuffer(int type, int tSize) | (no comment) | BufferChannel.c:202 | public |
| static int NioOk(const struct NioBuffer *b) | ---- helpers ---- | MemoryBuffers.c:10 | static |
| static int NioRo(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:15 | static |
| static void * NioAlloc(uint64_t n) | (no comment) | MemoryBuffers.c:20 | static |
| static struct NioBuffer * NioNew(uint8_t *data, int32_t cap, int32_t esz, uint8_t dtype, uint8_t flags, struct NioBuffer *parent) | (no comment) | MemoryBuffers.c:27 | static |
| static struct NioBuffer * NioAllocTyped(int32_t cap, int32_t esz, uint8_t dtype) | (no comment) | MemoryBuffers.c:47 | static |
| static struct NioBuffer * NioWrap(uint8_t *data, int32_t off, int32_t len, int32_t esz, uint8_t dtype) | (no comment) | MemoryBuffers.c:59 | static |
| static struct NioBuffer * NioDup(struct NioBuffer *src) | (no comment) | MemoryBuffers.c:68 | static |
| static struct NioBuffer * NioSlice(struct NioBuffer *src) | (no comment) | MemoryBuffers.c:81 | static |
| static struct NioBuffer * NioCompact(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:94 | static |
| static int NioBe(const struct NioBuffer *b) | ---- endian ---- | MemoryBuffers.c:110 | static |
| static void PutU16(uint8_t *p, uint16_t v, int be) | (no comment) | MemoryBuffers.c:115 | static |
| static uint16_t GetU16(const uint8_t *p, int be) | (no comment) | MemoryBuffers.c:120 | static |
| static void PutU32(uint8_t *p, uint32_t v, int be) | (no comment) | MemoryBuffers.c:125 | static |
| static uint32_t GetU32(const uint8_t *p, int be) | (no comment) | MemoryBuffers.c:135 | static |
| static void PutU64(uint8_t *p, uint64_t v, int be) | (no comment) | MemoryBuffers.c:142 | static |
| static uint64_t GetU64(const uint8_t *p, int be) | (no comment) | MemoryBuffers.c:148 | static |
| int32_t NioCapacity(const struct NioBuffer *b) | ---- common Buffer ops ---- | MemoryBuffers.c:158 | public |
| int32_t NioPosition(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:159 | public |
| int32_t NioLimit(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:160 | public |
| int32_t NioRemaining(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:161 | public |
| int NioHasRemaining(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:165 | public |
| int NioIsReadOnly(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:166 | public |
| int NioIsDirect(const struct NioBuffer *b) | (no comment) | MemoryBuffers.c:167 | public |
| struct NioBuffer * NioPositionSet(struct NioBuffer *b, int32_t pos) | (no comment) | MemoryBuffers.c:172 | public |
| struct NioBuffer * NioLimitSet(struct NioBuffer *b, int32_t lim) | (no comment) | MemoryBuffers.c:179 | public |
| struct NioBuffer * NioMark(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:187 | public |
| struct NioBuffer * NioReset(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:193 | public |
| struct NioBuffer * NioClear(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:199 | public |
| struct NioBuffer * NioFlip(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:207 | public |
| struct NioBuffer * NioRewind(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:215 | public |
| void NioBufferFree(struct NioBuffer *b) | (no comment) | MemoryBuffers.c:223 | public |
| static int NioHostBe(void) | ---- typed element byte order (honours NIO_BIG_ENDIAN) ---- Flag ON : elements are stored big-endian (Java default, GPU/wire order). On a | MemoryBuffers.c:237 | static |
| static void NioLoad(void *dst, const uint8_t *src, size_t n, int be) | (no comment) | MemoryBuffers.c:243 | static |
| static void NioStore(uint8_t *dst, const void *src, size_t n, int be) | (no comment) | MemoryBuffers.c:252 | static |
| struct ByteBuffer * ByteBufferAllocate(int32_t capacity) | Char is uint16_t; Object is ChannelData by-value get, pointer put | MemoryBuffers.c:344 | public |
| struct ByteBuffer * ByteBufferAllocateDirect(int32_t capacity) | (no comment) | MemoryBuffers.c:348 | public |
| struct ByteBuffer * ByteBufferWrap(uint8_t *array, int32_t offset, int32_t length) | (no comment) | MemoryBuffers.c:354 | public |
| struct ByteBuffer * ByteBufferWrapFull(uint8_t *array, int32_t length) | (no comment) | MemoryBuffers.c:358 | public |
| struct ByteBuffer * ByteBufferDuplicate(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:362 | public |
| struct ByteBuffer * ByteBufferSlice(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:366 | public |
| struct ByteBuffer * ByteBufferAsReadOnlyBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:370 | public |
| struct ByteBuffer * ByteBufferCompact(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:376 | public |
| int ByteBufferOrder(const struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:381 | public |
| struct ByteBuffer * ByteBufferOrderSet(struct ByteBuffer *bb, int big_endian) | (no comment) | MemoryBuffers.c:385 | public |
| uint8_t ByteBufferGet(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:393 | public |
| uint8_t ByteBufferGetAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:400 | public |
| struct ByteBuffer * ByteBufferGetArray(struct ByteBuffer *bb, uint8_t *dst, int32_t off, int32_t len) | (no comment) | MemoryBuffers.c:405 | public |
| struct ByteBuffer * ByteBufferPut(struct ByteBuffer *bb, uint8_t v) | (no comment) | MemoryBuffers.c:412 | public |
| struct ByteBuffer * ByteBufferPutAt(struct ByteBuffer *bb, int32_t index, uint8_t v) | (no comment) | MemoryBuffers.c:419 | public |
| struct ByteBuffer * ByteBufferPutArray(struct ByteBuffer *bb, const uint8_t *src, int32_t off, int32_t len) | (no comment) | MemoryBuffers.c:426 | public |
| struct ByteBuffer * ByteBufferPutBuffer(struct ByteBuffer *bb, struct ByteBuffer *src) | (no comment) | MemoryBuffers.c:434 | public |
| int16_t ByteBufferGetShort(struct ByteBuffer *bb) | cleaner explicit multi-byte helpers | MemoryBuffers.c:448 | public |
| int16_t ByteBufferGetShortAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:456 | public |
| struct ByteBuffer * ByteBufferPutShort(struct ByteBuffer *bb, int16_t v) | (no comment) | MemoryBuffers.c:461 | public |
| struct ByteBuffer * ByteBufferPutShortAt(struct ByteBuffer *bb, int32_t index, int16_t v) | (no comment) | MemoryBuffers.c:468 | public |
| uint16_t ByteBufferGetChar(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:475 | public |
| uint16_t ByteBufferGetCharAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:479 | public |
| struct ByteBuffer * ByteBufferPutChar(struct ByteBuffer *bb, uint16_t v) | (no comment) | MemoryBuffers.c:483 | public |
| struct ByteBuffer * ByteBufferPutCharAt(struct ByteBuffer *bb, int32_t index, uint16_t v) | (no comment) | MemoryBuffers.c:487 | public |
| int32_t ByteBufferGetInt(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:492 | public |
| int32_t ByteBufferGetIntAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:500 | public |
| struct ByteBuffer * ByteBufferPutInt(struct ByteBuffer *bb, int32_t v) | (no comment) | MemoryBuffers.c:505 | public |
| struct ByteBuffer * ByteBufferPutIntAt(struct ByteBuffer *bb, int32_t index, int32_t v) | (no comment) | MemoryBuffers.c:512 | public |
| int64_t ByteBufferGetLong(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:519 | public |
| int64_t ByteBufferGetLongAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:527 | public |
| struct ByteBuffer * ByteBufferPutLong(struct ByteBuffer *bb, int64_t v) | (no comment) | MemoryBuffers.c:532 | public |
| struct ByteBuffer * ByteBufferPutLongAt(struct ByteBuffer *bb, int32_t index, int64_t v) | (no comment) | MemoryBuffers.c:539 | public |
| float ByteBufferGetFloat(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:546 | public |
| float ByteBufferGetFloatAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:553 | public |
| struct ByteBuffer * ByteBufferPutFloat(struct ByteBuffer *bb, float v) | (no comment) | MemoryBuffers.c:560 | public |
| struct ByteBuffer * ByteBufferPutFloatAt(struct ByteBuffer *bb, int32_t index, float v) | (no comment) | MemoryBuffers.c:566 | public |
| double ByteBufferGetDouble(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:573 | public |
| double ByteBufferGetDoubleAt(struct ByteBuffer *bb, int32_t index) | (no comment) | MemoryBuffers.c:580 | public |
| struct ByteBuffer * ByteBufferPutDouble(struct ByteBuffer *bb, double v) | (no comment) | MemoryBuffers.c:587 | public |
| struct ByteBuffer * ByteBufferPutDoubleAt(struct ByteBuffer *bb, int32_t index, double v) | (no comment) | MemoryBuffers.c:593 | public |
| static struct NioBuffer * BbAsView(struct ByteBuffer *bb, int32_t esz, uint8_t dtype) | as*Buffer views -- share backing store, element-aligned remaining | MemoryBuffers.c:601 | static |
| struct CharBuffer * ByteBufferAsCharBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:613 | public |
| struct ShortBuffer * ByteBufferAsShortBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:615 | public |
| struct IntBuffer * ByteBufferAsIntBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:617 | public |
| struct LongBuffer * ByteBufferAsLongBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:619 | public |
| struct FloatBuffer * ByteBufferAsFloatBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:621 | public |
| struct DoubleBuffer * ByteBufferAsDoubleBuffer(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:623 | public |
| uint8_t * ByteBufferArray(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:626 | public |
| int32_t ByteBufferArrayOffset(struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:630 | public |
| int ByteBufferHasArray(const struct ByteBuffer *bb) | (no comment) | MemoryBuffers.c:635 | public |
| struct ObjectBuffer * ObjectBufferAllocate(int32_t capacity) | (no comment) | MemoryBuffers.c:643 | public |
| struct ObjectBuffer * ObjectBufferWrap(struct ChannelData *array, int32_t offset, int32_t length) | (no comment) | MemoryBuffers.c:647 | public |
| struct ChannelData ObjectBufferGet(struct ObjectBuffer *ob) | (no comment) | MemoryBuffers.c:651 | public |
| struct ChannelData ObjectBufferGetAt(struct ObjectBuffer *ob, int32_t index) | (no comment) | MemoryBuffers.c:660 | public |
| struct ObjectBuffer * ObjectBufferPut(struct ObjectBuffer *ob, const struct ChannelData *v) | (no comment) | MemoryBuffers.c:668 | public |
| struct ObjectBuffer * ObjectBufferPutAt(struct ObjectBuffer *ob, int32_t index, const struct ChannelData *v) | (no comment) | MemoryBuffers.c:676 | public |
| struct ObjectBuffer * ObjectBufferGetArray(struct ObjectBuffer *ob, struct ChannelData *dst, int32_t off, int32_t len) | (no comment) | MemoryBuffers.c:683 | public |
| struct ObjectBuffer * ObjectBufferPutArray(struct ObjectBuffer *ob, const struct ChannelData *src, int32_t off, int32_t len) | (no comment) | MemoryBuffers.c:690 | public |
| struct ObjectBuffer * ObjectBufferCompact(struct ObjectBuffer *ob) | (no comment) | MemoryBuffers.c:698 | public |
| struct ObjectBuffer * ObjectBufferDuplicate(struct ObjectBuffer *ob) | (no comment) | MemoryBuffers.c:700 | public |
| struct ObjectBuffer * ObjectBufferSlice(struct ObjectBuffer *ob) | (no comment) | MemoryBuffers.c:702 | public |
| struct ChannelData * ObjectBufferArray(struct ObjectBuffer *ob) | (no comment) | MemoryBuffers.c:704 | public |
| int ReadableByteChannelRead(struct ReadableByteChannel *ch, struct ByteBuffer *dst) | ---- channels ---- | MemoryBuffers.c:708 | public |
| int WritableByteChannelWrite(struct WritableByteChannel *ch, struct ByteBuffer *src) | (no comment) | MemoryBuffers.c:713 | public |
| void ReadableByteChannelClose(struct ReadableByteChannel *ch) | (no comment) | MemoryBuffers.c:718 | public |
| void WritableByteChannelClose(struct WritableByteChannel *ch) | (no comment) | MemoryBuffers.c:720 | public |
| static int MemRIsOpen(struct ReadableByteChannel *self) | (no comment) | MemoryBuffers.c:730 | static |
| static int MemWIsOpen(struct WritableByteChannel *self) | (no comment) | MemoryBuffers.c:732 | static |
| static void MemRClose(struct ReadableByteChannel *self) | (no comment) | MemoryBuffers.c:734 | static |
| static void MemWClose(struct WritableByteChannel *self) | (no comment) | MemoryBuffers.c:736 | static |
| static int MemSIsOpen(struct ScatteringByteChannel *self) | (no comment) | MemoryBuffers.c:739 | static |
| static int MemGIsOpen(struct GatheringByteChannel *self) | (no comment) | MemoryBuffers.c:741 | static |
| static void MemSClose(struct ScatteringByteChannel *self) | (no comment) | MemoryBuffers.c:743 | static |
| static void MemGClose(struct GatheringByteChannel *self) | (no comment) | MemoryBuffers.c:745 | static |
| static int MemXferRead(struct MemChCtx *ctx, struct ByteBuffer *dst) | Read up to dst remaining from ctx; -1 EOF, 0 no room, >0 bytes. | MemoryBuffers.c:749 | static |
| static int MemXferWrite(struct MemChCtx *ctx, struct ByteBuffer *src) | Write up to src remaining into ctx; 0 if no space/empty, >0 bytes. | MemoryBuffers.c:765 | static |
| static int MemRead(struct ReadableByteChannel *self, struct ByteBuffer *dst) | (no comment) | MemoryBuffers.c:780 | static |
| static int MemWrite(struct WritableByteChannel *self, struct ByteBuffer *src) | (no comment) | MemoryBuffers.c:785 | static |
| static int MemReadv(struct ScatteringByteChannel *self, struct ByteBuffer **dsts, int offset, int length) | (no comment) | MemoryBuffers.c:791 | static |
| static int MemWritev(struct GatheringByteChannel *self, struct ByteBuffer **srcs, int offset, int length) | (no comment) | MemoryBuffers.c:810 | static |
| static struct MemChCtx * MemCtxNew(uint8_t *data, int32_t length, int writable) | (no comment) | MemoryBuffers.c:829 | static |
| struct ByteChannel * MemoryByteChannelWrap(uint8_t *data, int32_t length, int writable) | (no comment) | MemoryBuffers.c:842 | public |
| void MemoryByteChannelFree(struct ByteChannel *ch) | (no comment) | MemoryBuffers.c:862 | public |
| struct ScatteringByteChannel * MemoryScatteringWrap(uint8_t *data, int32_t length) | Memory-backed scatter/gather channels (share MemChCtx layout). | MemoryBuffers.c:872 | public |
| void MemoryScatteringFree(struct ScatteringByteChannel *ch) | (no comment) | MemoryBuffers.c:887 | public |
| struct GatheringByteChannel * MemoryGatheringWrap(uint8_t *data, int32_t length) | (no comment) | MemoryBuffers.c:894 | public |
| void MemoryGatheringFree(struct GatheringByteChannel *ch) | (no comment) | MemoryBuffers.c:909 | public |
| int ScatteringByteChannelReadv(struct ScatteringByteChannel *ch, struct ByteBuffer **dsts, int offset, int length) | (no comment) | MemoryBuffers.c:916 | public |
| int GatheringByteChannelWritev(struct GatheringByteChannel *ch, struct ByteBuffer **srcs, int offset, int length) | (no comment) | MemoryBuffers.c:924 | public |
| const struct GPUBackend * GPUCalls(void) | (no comment) | MemoryChannel.c:26 | public |
| void SetGPUBackend(const struct GPUBackend *table) | (no comment) | MemoryChannel.c:32 | public |
| void MemoryCritEnter(void) | (no comment) | MemoryChannel.c:77 | public |
| void MemoryCritLeave(void) | (no comment) | MemoryChannel.c:78 | public |
| int MemoryCritGet(void) | (no comment) | MemoryChannel.c:87 | public |
| void MemoryCritSet(int depth) | (no comment) | MemoryChannel.c:88 | public |
| int MemoryCritDefer(void) | (no comment) | MemoryChannel.c:89 | public |
| void MemoryCritSetHook(void (*fn)(void)) | (no comment) | MemoryChannel.c:94 | public |
| static const wchar_t * MemoryTypeName(uint8_t type) | (no comment) | MemoryChannel.c:102 | static |
| static uint8_t MemoryTypeOf(const struct MemoryHandle *mh) | (no comment) | MemoryChannel.c:116 | static |
| static void TableInsert(struct MemoryChannel * restrict mc, struct MemoryHandle * restrict mh) | (no comment) | MemoryChannel.c:121 | static |
| static void TableRemove(struct MemoryChannel * restrict mc, struct MemoryHandle * restrict mh) | (no comment) | MemoryChannel.c:148 | static |
| void * AllocHeap(uint64_t size, const wchar_t *name) | Platform-backed allocators | MemoryChannel.c:170 | public |
| void FreeHeap(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:177 | public |
| void * AllocStack(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:183 | public |
| void FreeStack(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:191 | public |
| void * AllocIPC(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:217 | public |
| void FreeIPC(void *ptr, uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:247 | public |
| void * AllocIPC(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:268 | public |
| void FreeIPC(void *ptr, uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:299 | public |
| static void GpumemRelease(struct GPUMemEntry *e) | (no comment) | MemoryChannel.c:371 | static |
| void GPUMemSetDevice(struct SDL_GPUDevice *dev) | (no comment) | MemoryChannel.c:381 | public |
| void * AllocGPU(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:406 | public |
| void FreeGPU(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:454 | public |
| static struct GPUMemEntry * GpumemFind(const void *p) | find the LIVE entry whose block contains p (block base or payload pointer); mutex held | MemoryChannel.c:476 | static |
| struct SDL_GPUBuffer * GPUMemBuffer(const void *p, uint64_t *offset) | (no comment) | MemoryChannel.c:489 | public |
| static int GpumemSync(const void *p, int dir) | 0 = synced, -1 = p is not a device-backed block (no device / fallback / dead) or GPU error. dir 0 = host -> GPU, 1 = GPU -> host. Whole block. Synchronous. | MemoryChannel.c:506 | static |
| int GPUMemUpload(const void *p) | (no comment) | MemoryChannel.c:562 | public |
| int GPUMemDownload(const void *p) | (no comment) | MemoryChannel.c:563 | public |
| int IsMemAllocated(const void *p) | IsMemAllocated: 1 if p is a live AllocMem payload tracked by the MemoryChannel table (0 if not tracked, e.g. freed by the CloseMemoryChannel sweep). Without a MemoryChannel | MemoryChannel.c:570 | public |
| static void GResLock(void) | (no comment) | MemoryChannel.c:600 | static |
| static void GResUnlock(void) | (no comment) | MemoryChannel.c:601 | static |
| static void GResAccount(int64_t d) | (no comment) | MemoryChannel.c:603 | static |
| static void GResRelease(SDL_GPUDevice *dev, uint32_t kind, void *o) | (no comment) | MemoryChannel.c:615 | static |
| uint32_t AllocGPUResource(void *device, uint32_t kind, const void *info, uint64_t bytes, const char *name) | (no comment) | MemoryChannel.c:629 | public |
| static struct GPUResEntry * GResFind(uint32_t h) | (no comment) | MemoryChannel.c:665 | static |
| void * GPUResourceObject(uint32_t h) | (no comment) | MemoryChannel.c:674 | public |
| int FreeGPUResource(uint32_t h) | (no comment) | MemoryChannel.c:685 | public |
| uint32_t GPUResourceCount(void) | (no comment) | MemoryChannel.c:699 | public |
| static uint64_t GResBytes(uint32_t kind, const void *info) | Typed forms of AllocGPUResource for code that keeps SDL object pointers (same arguments and result as the SDL_CreateGPU* / SDL_ReleaseGPU* call they replace; bytes derived from info). | MemoryChannel.c:711 | static |
| static void * GResCreate(SDL_GPUDevice *d, uint32_t kind, const void *info) | (no comment) | MemoryChannel.c:721 | static |
| static void GResFreePtr(SDL_GPUDevice *d, uint32_t kind, void *o) | (no comment) | MemoryChannel.c:726 | static |
| SDL_GPUBuffer * AllocGPUBuffer(SDL_GPUDevice *d, const SDL_GPUBufferCreateInfo *i) | (no comment) | MemoryChannel.c:737 | public |
| SDL_GPUTransferBuffer * AllocGPUTransferBuffer(SDL_GPUDevice *d, const SDL_GPUTransferBufferCreateInfo *i) | (no comment) | MemoryChannel.c:739 | public |
| SDL_GPUTexture * AllocGPUTexture(SDL_GPUDevice *d, const SDL_GPUTextureCreateInfo *i) | (no comment) | MemoryChannel.c:741 | public |
| SDL_GPUComputePipeline * AllocGPUComputePipeline(SDL_GPUDevice *d, const SDL_GPUComputePipelineCreateInfo *i) | (no comment) | MemoryChannel.c:743 | public |
| SDL_GPUGraphicsPipeline * AllocGPUGraphicsPipeline(SDL_GPUDevice *d, const SDL_GPUGraphicsPipelineCreateInfo *i) | (no comment) | MemoryChannel.c:745 | public |
| SDL_GPUShader * AllocGPUShader(SDL_GPUDevice *d, const SDL_GPUShaderCreateInfo *i) | (no comment) | MemoryChannel.c:747 | public |
| SDL_GPUSampler * AllocGPUSampler(SDL_GPUDevice *d, const SDL_GPUSamplerCreateInfo *i) | (no comment) | MemoryChannel.c:749 | public |
| void FreeGPUBuffer(SDL_GPUDevice *d, SDL_GPUBuffer *o) | (no comment) | MemoryChannel.c:751 | public |
| void FreeGPUTransferBuffer(SDL_GPUDevice *d, SDL_GPUTransferBuffer *o) | (no comment) | MemoryChannel.c:752 | public |
| void FreeGPUTexture(SDL_GPUDevice *d, SDL_GPUTexture *o) | (no comment) | MemoryChannel.c:753 | public |
| void FreeGPUComputePipeline(SDL_GPUDevice *d, SDL_GPUComputePipeline *o) | (no comment) | MemoryChannel.c:754 | public |
| void FreeGPUGraphicsPipeline(SDL_GPUDevice *d, SDL_GPUGraphicsPipeline *o) | (no comment) | MemoryChannel.c:755 | public |
| void FreeGPUShader(SDL_GPUDevice *d, SDL_GPUShader *o) | (no comment) | MemoryChannel.c:756 | public |
| void FreeGPUSampler(SDL_GPUDevice *d, SDL_GPUSampler *o) | (no comment) | MemoryChannel.c:757 | public |
| static void GResReleaseDevice(SDL_GPUDevice *dev) | (no comment) | MemoryChannel.c:759 | static |
| void GPUMemStats(int *live, int *dead) | (no comment) | MemoryChannel.c:774 | public |
| void * AllocCloud(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:789 | public |
| void FreeCloud(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:796 | public |
| void * AllocRegistry(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:802 | public |
| void FreeRegistry(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:808 | public |
| void * AllocPage(uint64_t size, const wchar_t *name) | (no comment) | MemoryChannel.c:814 | public |
| void FreePage(void *ptr, uint64_t size) | (no comment) | MemoryChannel.c:826 | public |
| static struct MemoryChannel * OpenMemoryChannelBody(void) | MemoryChannel lifecycle | MemoryChannel.c:841 | static |
| static void CloseMemoryChannelBody(struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:872 | static |
| void * AllocMem(uint64_t tSize, ...) | (no comment) | MemoryChannel.c:889 | public |
| void * AllocMemExt(uint64_t tSize, struct MemoryAllocationRequest *req) | (no comment) | MemoryChannel.c:1005 | public |
| static void FreememRaw(void *ptr) | (no comment) | MemoryChannel.c:1010 | static |
| int MemoryChannelInfo(struct MemoryChannel *mc) | Info and control | MemoryChannel.c:1097 | public |
| int MemoryChannelReset(struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1104 | public |
| int MemoryChannelSetName(struct MemoryHandle *mh, const wchar_t *name) | (no comment) | MemoryChannel.c:1120 | public |
| const wchar_t * MemoryChannelGetName(const struct MemoryHandle *mh) | (no comment) | MemoryChannel.c:1128 | public |
| uint64_t MemoryChannelSize(const struct MemoryHandle *mh) | (no comment) | MemoryChannel.c:1133 | public |
| uint64_t MemoryChannelAllocated(const struct MemoryChannel *mc, uint8_t type) | (no comment) | MemoryChannel.c:1138 | public |
| uint64_t MemoryChannelRemaining(const struct MemoryChannel *mc, uint8_t type) | (no comment) | MemoryChannel.c:1144 | public |
| uint32_t MemoryChannelLiveCount(const struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1150 | public |
| struct MemoryHandle * MemoryChannelFind(struct MemoryChannel *mc, void *payload) | (no comment) | MemoryChannel.c:1155 | public |
| int MemoryChannelSnapshot(struct MemoryChannel *mc, struct MemoryHandle **out, uint32_t max, uint32_t *count) | (no comment) | MemoryChannel.c:1172 | public |
| void MemoryChannelShowTypes(const struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1190 | public |
| void MemoryChannelShowLeaks(const struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1203 | public |
| void MemoryChannelShowAll(const struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1220 | public |
| void MemoryCopy(void * restrict dst, const void * restrict src, uint64_t bytes) | Memory operations � restrict on hot path | MemoryChannel.c:1236 | public |
| void MemoryZero(void * restrict dst, uint64_t bytes) | (no comment) | MemoryChannel.c:1241 | public |
| int MemoryCompare(const void * restrict a, const void * restrict b, uint64_t bytes) | (no comment) | MemoryChannel.c:1246 | public |
| struct BigUInt128 * GetTotalSystemMemory(void) | System memory info | MemoryChannel.c:1255 | public |
| uint64_t GetSystemRAM(void) | (no comment) | MemoryChannel.c:1265 | public |
| uint64_t GetUsedMemory(void) | (no comment) | MemoryChannel.c:1279 | public |
| uint64_t GetTotalMemory(void) | (no comment) | MemoryChannel.c:1293 | public |
| uint64_t GetTotalGPUMemory(void) | (no comment) | MemoryChannel.c:1298 | public |
| uint64_t GetGPUUsedMemory(void) | (no comment) | MemoryChannel.c:1299 | public |
| void PrintMemorySize(uint64_t bytes) | Diagnostics | MemoryChannel.c:1305 | public |
| void PrintMemoryRequest(const struct MemoryAllocationRequest *req) | (no comment) | MemoryChannel.c:1314 | public |
| void ShowMem(void) | (no comment) | MemoryChannel.c:1325 | public |
| void * AllocChannelMem(const wchar_t *name) | Shared IPC channel buffer (used by NetXecChannel bootstrap) | MemoryChannel.c:1336 | public |
| static void McPut32(uint8_t *p, uint32_t v) | (no comment) | MemoryChannel.c:1363 | static |
| static void McPut64(uint8_t *p, uint64_t v) | (no comment) | MemoryChannel.c:1364 | static |
| static uint32_t McGet32(const uint8_t *p) | (no comment) | MemoryChannel.c:1365 | static |
| static uint64_t McGet64(const uint8_t *p) | (no comment) | MemoryChannel.c:1366 | static |
| uint64_t MemoryChannelJoin(void *peer) | (no comment) | MemoryChannel.c:1368 | public |
| void * MemoryChannelLeave(void *peer) | (no comment) | MemoryChannel.c:1390 | public |
| uint64_t MemoryChannelRead(void *chan, void *buf, long len) | 64-byte BE info record: [0] u32 'MEMC' [4] u32 version 1 [8] u32 live handles [12] u32 peak | MemoryChannel.c:1410 | public |
| uint64_t MemoryChannelWrite(void *chan, void *buf, long len) | (no comment) | MemoryChannel.c:1432 | public |
| void MemorySetThreadOwner(uint8_t owner) | Guru support (open_idem/work): owner tag, exception flag, purge. Declared in memory.h. | MemoryChannel.c:1467 | public |
| uint8_t MemoryGetThreadOwner(void) | (no comment) | MemoryChannel.c:1468 | public |
| uint32_t MemoryPurgedTotal(void) | (no comment) | MemoryChannel.c:1469 | public |
| uint8_t MemoryHandleOwner(const struct MemoryHandle *mh) | (no comment) | MemoryChannel.c:1470 | public |
| void MemorySetException(int on) | (no comment) | MemoryChannel.c:1471 | public |
| int MemoryGetException(void) | (no comment) | MemoryChannel.c:1472 | public |
| uint32_t MemoryChannelPurgeOwner(uint8_t owner) | Free every live handle whose owner tag == owner. Scan under the table lock, free outside it. | MemoryChannel.c:1475 | public |
| uint32_t MemoryChannelCountOwner(struct MemoryChannel *mc, uint8_t owner) | (no comment) | MemoryChannel.c:1500 | public |
| void FreeMem(void *ptr) | FreeMem: normal free. While the Guru exception flag is on, first delete every USER handle; if ptr itself was one of them it is already gone. | MemoryChannel.c:1513 | public |
| struct MemoryChannel * OpenMemoryChannel(void) | Standard runtime entry points (Join/Leave/Read/Write/Open/Close) -- thin wrappers, behaviour of Open/Close unchanged (bodies renamed *Body). See CHREC_RUNTIME in defines.h. | MemoryChannel.c:1531 | public |
| void CloseMemoryChannel(struct MemoryChannel *mc) | (no comment) | MemoryChannel.c:1537 | public |