package helpers
import "github.com/evanw/esbuild/internal/helpers"
Index ¶
Types ¶
type Joiner ¶
type Joiner struct {
// contains filtered or unexported fields
}
This provides an efficient way to join lots of big string and byte slices together. It avoids the cost of repeatedly reallocating as the buffer grows by measuring exactly how big the buffer should be and then allocating once. This is a measurable speedup.
func (*Joiner) AddBytes ¶
func (*Joiner) AddString ¶
func (*Joiner) Done ¶
func (*Joiner) EnsureNewlineAtEnd ¶
func (j *Joiner) EnsureNewlineAtEnd()
func (*Joiner) LastByte ¶
func (*Joiner) Length ¶
Source Files ¶
- Version
- v0.9.6
- Published
- Mar 20, 2021
- Platform
- windows/amd64
- Last checked
- 2 hours ago –
Tools for package owners.