MCPcopy Create free account
hub / github.com/dolthub/doltgresql / writeAsHexString

Function writeAsHexString

postgres/parser/sem/tree/datum.go:655–660  ·  view source on GitHub ↗
(ctx *FmtCtx, d *DBytes)

Source from the content-addressed store, hash-verified

653func (*DBytes) AmbiguousFormat() bool { return true }
654
655func writeAsHexString(ctx *FmtCtx, d *DBytes) {
656 b := string(*d)
657 for i := 0; i < len(b); i++ {
658 ctx.Write(stringencoding.RawHexMap[b[i]])
659 }
660}
661
662// Format implements the NodeFormatter interface.
663func (d *DBytes) Format(ctx *FmtCtx) {

Callers 1

FormatMethod · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected