nalloc
nalloc copied to clipboard
Achieving a mirror of underlying buffer
Hi there, I have been looking for a way to create a MemoryMapping of an underlying buffer, but the MemMap is a mirror of the underlying to provide transparent contiguous access.
Similar to what this library provides:
https://github.com/willemt/cbuffer/blob/master/cbuffer.c#L52
So we have underlying file like this: F = [ABC] MemMap = [ABC][ABC] So the MemMap is an extension of the underlying x2. Meaning if we did MemMap[0] = D or MemMa[3] = D F = [DBC]
Because the java file channel API cannot do any address manipulation, would it be possible with your library?
Thanks!