Documentation
¶
Overview ¶
Package blockbuf implements a functionality similar to "mbuffer". This is useful for writing to tape drives that require large block sizes and continuous writes (without breaks).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
Copy will copy from src to dst but ensures that writes are always of block size (bs) except for possibly the last write. Writes are not attempted until the high water mark (hwm) number of blocks are first read. At which point the buffer is written until empty. Then it waits until the high water mark is achieved again. The maximum buffer size is `n` blocks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.