MCPcopy Create free account
hub / github.com/apache/fory / sliceDynSerializer

Struct sliceDynSerializer

go/fory/slice_dyn.go:30–34  ·  view source on GitHub ↗

sliceDynSerializer provides the dynamic slice implementation that inspects element values at runtime. This serializer is designed for slices with any interface element type (e.g., []any, []io.Reader, []fmt.Stringer, or pointers to interfaces). For slices with concrete element types, use sliceSeriali

Source from the content-addressed store, hash-verified

28// (e.g., []any, []io.Reader, []fmt.Stringer, or pointers to interfaces).
29// For slices with concrete element types, use sliceSerializer instead.
30type sliceDynSerializer struct {
31 elemType reflect.Type
32 isInterfaceElem bool
33 isPointerElem bool
34}
35
36// newSliceDynSerializer creates a new sliceDynSerializer.
37// This serializer is ONLY for slices with interface or pointer to interface element types.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected