MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Clone

Method Clone

xmlparser/tokens.go:199–201  ·  view source on GitHub ↗

Clone creates a deep copy of the Text.

()

Source from the content-addressed store, hash-verified

197
198// Clone creates a deep copy of the Text.
199func (t *Text) Clone() *Text {
200 return &Text{bytes.Clone(t.Data), t.CData}
201}
202
203// WriteTo writes the XML representation of the text to the provided writer.
204func (t *Text) WriteTo(w TokenWriter) error {

Callers 12

ReportMethod · 0.45
ReportMethod · 0.45
TestCopyAllFunction · 0.45
readFromMethod · 0.45
CloneMethod · 0.45
CloneMethod · 0.45
CloneMethod · 0.45
handlerMethod · 0.45
MapMethod · 0.45
CookiesMethod · 0.45
sendRequestMethod · 0.45
GetMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestCopyAllFunction · 0.36
handlerMethod · 0.36