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

Function Deserialize

go/fory/threadsafe/fory.go:122–126  ·  view source on GitHub ↗

Deserialize deserializes data directly into the provided target, thread-safe. Takes pointer to avoid interface heap allocation and enable direct writes.

(f *Fory, data []byte, target *T)

Source from the content-addressed store, hash-verified

120// Deserialize deserializes data directly into the provided target, thread-safe.
121// Takes pointer to avoid interface heap allocation and enable direct writes.
122func Deserialize[T any](f *Fory, data []byte, target *T) error {
123 inner := f.acquire()
124 defer f.release(inner)
125 return fory.Deserialize(inner, data, target)
126}
127
128// ============================================================================
129// Global convenience functions

Callers 3

TestForyFunction · 0.70
TestDeserializeFunction · 0.70
UnmarshalFunction · 0.70

Calls 3

acquireMethod · 0.45
releaseMethod · 0.45
DeserializeMethod · 0.45

Tested by 2

TestForyFunction · 0.56
TestDeserializeFunction · 0.56