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

Function deserializeTypeBytea

server/types/bytea.go:77–80  ·  view source on GitHub ↗

deserializeTypeBytea handles deserialization from the Dolt serialized format to our standard representation used by expressions and nodes.

(ctx *sql.Context, t *DoltgresType, data []byte)

Source from the content-addressed store, hash-verified

75// deserializeTypeBytea handles deserialization from the Dolt serialized format to our standard representation used by
76// expressions and nodes.
77func deserializeTypeBytea(ctx *sql.Context, t *DoltgresType, data []byte) (any, error) {
78 reader := utils.NewReader(data)
79 return reader.ByteSlice(), nil
80}

Callers

nothing calls this directly

Calls 2

ByteSliceMethod · 0.95
NewReaderFunction · 0.92

Tested by

no test coverage detected