MCPcopy Create free account
hub / github.com/cockscomb/cel2sql / bytesToOctets

Function bytesToOctets

cel2sql.go:819–825  ·  view source on GitHub ↗

bytesToOctets converts byte sequences to a string using a three digit octal encoded value per byte.

(byteVal []byte)

Source from the content-addressed store, hash-verified

817// bytesToOctets converts byte sequences to a string using a three digit octal encoded value
818// per byte.
819func bytesToOctets(byteVal []byte) string {
820 var b strings.Builder
821 for _, c := range byteVal {
822 _, _ = fmt.Fprintf(&b, "\\%03o", c)
823 }
824 return b.String()
825}
826
827var fieldNameRegexp = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_]{0,127}$`)
828

Callers 1

visitConstMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected