--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You need a means of calculating the offset of each field. You can for example store the relative end of each array as an integer 16/32 bit. The start of the first array is the end of all the fixed data, the start of each array after it is the end of the previous one. E.g.
You have three arrays of 16 bytes, 24 bytes and 5 bytes. The types could be int or double etc.
16
40
45
16 x 0
24 x 0
5 x 0
To get the 3rd double of the second array.
public double getDoubleAt(int n) {
short endOfFirst = bytes.readUnsignedShort(END_OF_FIRST);
return bytes.readDouble(SIZE_OF_FIXED + endOfFirst + n * 8L);
--
--