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

Method Write

go/fory/serializer.go:51–51  ·  view source on GitHub ↗

Write is the entry point for serialization. This method orchestrates the complete serialization process, handling reference tracking, type information, and delegating to WriteData for the actual data serialization. Unlike Java's unified ref tracking approach, Go uses per-serializer ref/type handli

(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

49 // Errors are set on the context via ctx.SetError() and should be checked
50 // at appropriate boundaries using ctx.HasError() or ctx.CheckError().
51 Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)
52
53 // WriteData serializes using reflect.Value.
54 // Does NOT write ref/type info - caller handles that.

Callers 15

writeChunkMethod · 0.95
writeUCS2Function · 0.65
calcTypeHashFunction · 0.65
writeMetaStringMethod · 0.65
writeSameTypeMethod · 0.65
writeSerializerDataFunction · 0.65
writeUnionDeclaredValueFunction · 0.65
WriteDataMethod · 0.65
WriteMetaStringBytesMethod · 0.65
writeNullValueEntryMethod · 0.65
writeNullKeyEntryMethod · 0.65

Implementers 15

setSerializergo/fory/set.go
sliceDynSerializergo/fory/slice_dyn.go
byteSliceSerializergo/fory/slice_primitive.go
boolSliceSerializergo/fory/slice_primitive.go
int8SliceSerializergo/fory/slice_primitive.go
int16SliceSerializergo/fory/slice_primitive.go
int32SliceSerializergo/fory/slice_primitive.go
int64SliceSerializergo/fory/slice_primitive.go
uint16SliceSerializergo/fory/slice_primitive.go
uint32SliceSerializergo/fory/slice_primitive.go
uint64SliceSerializergo/fory/slice_primitive.go
float32SliceSerializergo/fory/slice_primitive.go

Calls

no outgoing calls

Tested by 3

deflateTypeDefTestBodyFunction · 0.52