libdash
libdash copied to clipboard
Fixing BlockStream::BlockQueuePeekBytes
The BlockStream::BlockQueuePeekBytes function fails when the offset is bigger than first block length
also, when you have to read data from two or more blocks it calculating wrongly the destination offset.
This pull request is the proposal fix for this function.