{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package buffer\n\nPackage buffer reuses exclusively owned temporary byte storage.\n\n## Variables\n\n```go\nvar ErrLimit = errors.New(\"buffer: read exceeds limit\")\n```\n\n## Functions\n\n```go\nfunc Put(b *Buffer)\n```\n\n## Types\n\n```go\ntype Buffer struct{ Bytes []byte }\n```\nBuffer must not be accessed after Put or shared while being resized.\n\n```go\nfunc Get(size int) *Buffer\n```\n\n```go\nfunc (b *Buffer) ReadAll(r io.Reader, size, limit int) error\n```\nReadAll uses a size hint, detects files growing beyond limit, and retains its storage for the next file. A successful read owns exactly the bytes returned.\n\n```go\nfunc (b *Buffer) Resize(size int)\n```\n\n","path":"github.com/pencode-labs/pencode/internal/buffer","name":"buffer","synopsis":"Package buffer reuses exclusively owned temporary byte storage.","isRedistributable":true}
