可组合的缓冲库GoBuffer.zip
Buffer是Go语言一个可组合的缓冲库。示例代码:import ( "github.com/djherbis/buffer" "github.com/djherbis/nio" "io/ioutil")// Buffer 32KB to Memory, after that buffer to 100MB chunked filesbuf := buffer.NewUnboundedBuffer(32*1024, 100*1024*1024)nio.Copy(w, r, buf) // Reads from r, writes to buf, reads from bu
用户评论