Documentation
¶
Index ¶
Constants ¶
View Source
const MaxCanonicalBufferBytes uint64 = 33_554_432
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanonicalBuffer ¶
type CanonicalBuffer struct {
Summary Summary
Bytes []byte
Lines []LineOffset
}
func BufferCanonical ¶
func (CanonicalBuffer) Footprint ¶
func (buffer CanonicalBuffer) Footprint() uint64
Footprint counts the retained backing arrays exactly once.
type Domain ¶
type Domain struct {
ThroughLine uint32
}
Domain selects a canonical prefix. Zero means the complete file.
type LineOffset ¶
type RangeSink ¶
type RangeSink struct {
// contains filtered or unexported fields
}
RangeSink copies only lines in an already validated inclusive range.
func NewRangeSink ¶
Click to show internal directories.
Click to hide internal directories.