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

Method WriteData

go/fory/string.go:127–129  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

125var globalStringSerializer = stringSerializer{}
126
127func (s stringSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
128 writeString(ctx.buffer, value.String())
129}
130
131func (s stringSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
132 if refMode != RefModeNone {

Callers 1

WriteMethod · 0.95

Calls 2

writeStringFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected