Region.readChunk

Reads chunk from a file. Chunks positions are region local in range 0..REGION_SIZE. outBuffer should be big enough to store chunk of any size.

struct Region
ubyte[]
readChunk

Return Value

Type: ubyte[]

a slice of outBuffer with actual data or null if chunk was not stored on disk previously. Positions are region local. I.e. 0..REGION_SIZE

Meta