Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

wenjianhn/chunkaligned

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chunkaligned

Build Status Coverage Status

Summary

NewChunkAlignedReaderAt returns a ReaderAt wrapper that is backed by a ReaderAt r of size totalSize where the wrapper guarantees that all ReadAt calls are aligned to chunkSize boundaries and of size chunkSize (except for the final chunk, which may be shorter).

A chunk-aligned reader is good for caching, letting upper layers have any access pattern, but guarantees that the wrapped ReaderAt sees only nicely-cacheable access patterns & sizes.

Usage

For API docs and examples, see tests.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages