func (v *View) Apply(fn func([]byte)) {
	for buf := v.data.Front(); buf != nil; buf = buf.Next() {
		if l := int64(buf.write - buf.read); l > 0 {
			fn(buf.data[buf.read:buf.write])
		}
	}
}
// Apply applies the given function across all valid data.
Apply applies the given function across all valid data.
// Apply applies the given function across all valid data .
func (v *View) Apply(fn func([]byte)) {
	for buf := v.data.Front(); buf != nil; buf = buf.Next() {
		if l := int64(buf.write - buf.read); l > 0 {
			fn(buf.data[buf.read:buf.write])
		}
	}
}
func ( v * View ) Apply ( fn func ( [ ] byte ) ) { for buf := v . data . Front ( ) ; buf != nil ; buf = buf . Next ( ) { if l := int64 ( buf . write - buf . read ) ; l > 0 { fn ( buf . data [ buf . read : buf . write ] ) } } }
Apply applies the given function across all valid data.
Apply applies the given function across all valid data .