MCPcopy Index your code
hub / github.com/dinedal/textql / encodeAscii

Method encodeAscii

sqlparser/sqltypes/sqltypes.go:331–337  ·  view source on GitHub ↗
(b BinWriter)

Source from the content-addressed store, hash-verified

329}
330
331func (s String) encodeAscii(b BinWriter) {
332 writebyte(b, '\'')
333 encoder := base64.NewEncoder(base64.StdEncoding, b)
334 encoder.Write(s.raw())
335 encoder.Close()
336 writebyte(b, '\'')
337}
338
339func writebyte(b BinWriter, c byte) {
340 if err := b.WriteByte(c); err != nil {

Callers

nothing calls this directly

Calls 4

rawMethod · 0.95
writebyteFunction · 0.85
WriteMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected