MCPcopy Index your code
hub / github.com/alaisi/nalloc

github.com/alaisi/nalloc @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
179 symbols 515 edges 21 files 43 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

MmapAllocator (Interface)
Memory allocator that allocates objects from memory mapped files. @author Antti Laisi [2 implementers]
src/main/java/com/github/nalloc/MmapAllocator.java
Val (Interface)
Simple struct type used in tests. @author Antti Laisi
src/test/java/com/github/nalloc/impl/Val.java
NativeHeapAllocator (Interface)
Memory allocator that allocates structs from native ("C") heap. @author Antti Laisi [2 implementers]
src/main/java/com/github/nalloc/NativeHeapAllocator.java
Pointer (Interface)
Pointer to a memory address. @author Antti Laisi [2 implementers]
src/main/java/com/github/nalloc/Pointer.java
Array (Interface)
Pointer to a continuous memory region. @author Antti Laisi [1 implementers]
src/main/java/com/github/nalloc/Array.java

Core symbols most depended-on inside this repo

get
called by 34
src/main/java/com/github/nalloc/Array.java
deref
called by 29
src/main/java/com/github/nalloc/Pointer.java
val
called by 28
src/test/java/com/github/nalloc/impl/Val.java
address
called by 17
src/main/java/com/github/nalloc/Pointer.java
name
called by 14
src/test/java/com/github/nalloc/impl/UnsafeNativeHeapAllocatorTest.java
create
called by 14
src/main/java/com/github/nalloc/impl/NativeStruct.java
c
called by 9
src/test/java/com/github/nalloc/impl/StructTest.java
clone
called by 9
src/main/java/com/github/nalloc/Array.java

Shape

Method 148
Class 16
Interface 13
Enum 2

Languages

Java100%

Modules by API surface

src/test/java/com/github/nalloc/impl/StructTest.java33 symbols
src/main/java/com/github/nalloc/impl/PointerArithmetics.java25 symbols
src/main/java/com/github/nalloc/impl/StructClassGenerator.java23 symbols
src/test/java/com/github/nalloc/impl/DirectBufferMmapAllocatorTest.java12 symbols
src/main/java/com/github/nalloc/impl/HeapArray.java11 symbols
src/main/java/com/github/nalloc/impl/HeapPointer.java8 symbols
src/test/java/com/github/nalloc/impl/UnsafeNativeHeapAllocatorTest.java7 symbols
src/main/java/com/github/nalloc/impl/NativeStruct.java6 symbols
src/main/java/com/github/nalloc/Pointer.java6 symbols
src/main/java/com/github/nalloc/NativeHeapAllocator.java6 symbols
src/test/java/com/github/nalloc/impl/NativeStructTest.java5 symbols
src/test/java/com/github/nalloc/impl/HeapArrayTest.java5 symbols

For agents

$ claude mcp add nalloc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact