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

Method WriteData

go/fory/primitive.go:31–33  ·  view source on GitHub ↗
(ctx *WriteContext, value reflect.Value)

Source from the content-addressed store, hash-verified

29var globalBoolSerializer = boolSerializer{}
30
31func (s boolSerializer) WriteData(ctx *WriteContext, value reflect.Value) {
32 ctx.buffer.WriteBool(value.Bool())
33}
34
35func (s boolSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
36 _ = hasGenerics // not used for primitive types

Callers 1

WriteMethod · 0.95

Calls 2

WriteBoolMethod · 0.80
BoolMethod · 0.80

Tested by

no test coverage detected