Closed TheStarkster closed 7 months ago
Thank you for taking a crack at this!
TPCircularBuffer operates using a VM trick that mirrors the buffer, so that you can write past the end, and it will wrap around to the beginning because of the mirrored copy at the end. I don't see any equivalent implementation here in the Mach replacement - it looks to me like it's simply allocating a single stretch of memory, which means that this will crash (or write past the buffer) as soon as the buffer reaches the wrap point. Have I missed something?
I faced problem while using it for android, so found out mach.h is only macOS / iOS, so i removed the dependency from mach.h and made it support both android/iOS/linux/macOS (also its tested already)