MCPcopy
hub / github.com/dropbox/godropbox / MarshalBinary

Method MarshalBinary

database/sqltypes/sqltypes.go:541–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539}
540
541func (s String) MarshalBinary() ([]byte, error) {
542 if s.isUtf8 {
543 return writeBinary(UTF8StringType, s.raw())
544 }
545 return writeBinary(StringType, s.raw())
546}
547
548func writebyte(b encoding2.BinaryWriter, c byte) {
549 if err := b.WriteByte(c); err != nil {

Callers

nothing calls this directly

Calls 2

rawMethod · 0.95
writeBinaryFunction · 0.85

Tested by

no test coverage detected