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

Method Deserialize

go/fory/threadsafe/fory.go:87–91  ·  view source on GitHub ↗

Deserialize deserializes data into the provided value using a pooled Fory instance

(data []byte, v any)

Source from the content-addressed store, hash-verified

85
86// Deserialize deserializes data into the provided value using a pooled Fory instance
87func (f *Fory) Deserialize(data []byte, v any) error {
88 inner := f.acquire()
89 defer f.release(inner)
90 return inner.Deserialize(data, v)
91}
92
93// RegisterStructByName registers a struct type by name for cross-language serialization.
94func (f *Fory) RegisterStructByName(type_ any, name string) error {

Callers 15

TestForyFunction · 0.45
TestSerializeAnyFunction · 0.45
DeserializeFunction · 0.45
UnmarshalToFunction · 0.45
testSimpleStructFunction · 0.45
testNamedSimpleStructFunction · 0.45
testSkipIdCustomFunction · 0.45
testSkipNameCustomFunction · 0.45
testStructVersionCheckFunction · 0.45

Calls 2

acquireMethod · 0.95
releaseMethod · 0.95

Tested by 2

TestForyFunction · 0.36
TestSerializeAnyFunction · 0.36