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

Function serializeTypeInt16Vector

server/types/int16vector.go:62–65  ·  view source on GitHub ↗

serializeTypeInt16Vector handles serialization from the standard representation to our serialized representation that is written in Dolt.

(ctx *sql.Context, t *DoltgresType, val any)

Source from the content-addressed store, hash-verified

60// serializeTypeInt16Vector handles serialization from the standard representation to our serialized representation that is
61// written in Dolt.
62func serializeTypeInt16Vector(ctx *sql.Context, t *DoltgresType, val any) ([]byte, error) {
63 vals := val.([]any)
64 return serializeArray(ctx, vals, Int16)
65}
66
67// deserializeTypeInt16Vector handles deserialization from the Dolt serialized format to our standard representation used by
68// expressions and nodes.

Callers

nothing calls this directly

Calls 1

serializeArrayFunction · 0.85

Tested by

no test coverage detected