MCPcopy Index your code
hub / github.com/dropbox/godropbox / encodeAscii

Method encodeAscii

database/sqltypes/sqltypes.go:533–539  ·  view source on GitHub ↗
(b encoding2.BinaryWriter)

Source from the content-addressed store, hash-verified

531}
532
533func (s String) encodeAscii(b encoding2.BinaryWriter) {
534 writebyte(b, '\'')
535 encoder := base64.NewEncoder(base64.StdEncoding, b)
536 encoder.Write(s.raw())
537 encoder.Close()
538 writebyte(b, '\'')
539}
540
541func (s String) MarshalBinary() ([]byte, error) {
542 if s.isUtf8 {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected