While working on the code of my previous post I noticed a ‘theoretical problem’ in RAMDataAccess.java#L162. According to the javadoc of read(byte[]):
Reads up to b.length bytes of data from [...]
Returns: the total number of bytes read into the buffer
It doesn’t say when it returns less bytes (and to be fair I never had a runtime issue with this part of code) but it might. So just keep this post in mind
Best,
Jan