MCPcopy Index your code
hub / github.com/dop251/goja / writeASCIIString

Method writeASCIIString

string_unicode.go:198–202  ·  view source on GitHub ↗
(bytes string)

Source from the content-addressed store, hash-verified

196}
197
198func (b *unicodeStringBuilder) writeASCIIString(bytes string) {
199 for _, c := range bytes {
200 b.buf = append(b.buf, uint16(c))
201 }
202}
203
204func (b *unicodeStringBuilder) writeUnicodeString(str unicodeString) {
205 b.buf = append(b.buf, str[1:]...)

Callers 5

WriteStringMethod · 0.80
WriteUTF8StringMethod · 0.80
writeASCIIMethod · 0.80
switchToUnicodeMethod · 0.80
WriteSubstringMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected