MCPcopy Index your code
hub / github.com/lib/pq / encodeBytea

Function encodeBytea

encode.go:394–400  ·  view source on GitHub ↗
(v []byte)

Source from the content-addressed store, hash-verified

392}
393
394func encodeBytea(v []byte) (result []byte) {
395 result = make([]byte, 2+hex.EncodedLen(len(v)))
396 result[0] = '\\'
397 result[1] = 'x'
398 hex.Encode(result[2:], v)
399 return result
400}

Callers 2

encodeFunction · 0.85
appendEncodedTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…