commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manoj mokashi <>
Subject Re: [Collections] Circular Buffer
Date Wed, 07 Mar 2012 10:32:24 GMT
Sorry for always replying to the main thread,
i have not subscribed to the list, so my "in-reply-to" headers are not correct.

its more like a circular array i guess.
i needed to parse a binary file and look for 512 byte headers.
so i keep storing each byte in a 512 byte circular array and here i
have the last 512 bytes read,
which i check under certain conditions against the header pattern.
to match against the header pattern i would need to see if header[1] != 0 etc.
hence the requirement for an efficient getLast( offset) method.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message