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

Function stringSliceValue

go/fory/slice_primitive.go:695–700  ·  view source on GitHub ↗
(value reflect.Value)

Source from the content-addressed store, hash-verified

693}
694
695func stringSliceValue(value reflect.Value) []string {
696 if value.CanAddr() {
697 return *(*[]string)(value.Addr().UnsafePointer())
698 }
699 return value.Interface().([]string)
700}
701
702// ============================================================================
703// Exported helper functions for primitive slice serialization (ARRAY protocol)

Callers 1

writeDataWithGenericsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected