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

Method Write

go/fory/primitive.go:35–44  ·  view source on GitHub ↗
(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)

Source from the content-addressed store, hash-verified

33}
34
35func (s boolSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) {
36 _ = hasGenerics // not used for primitive types
37 if refMode != RefModeNone {
38 ctx.buffer.WriteInt8(NotNullValueFlag)
39 }
40 if writeType {
41 ctx.buffer.WriteUint8(uint8(BOOL))
42 }
43 s.WriteData(ctx, value)
44}
45
46func (s boolSerializer) ReadData(ctx *ReadContext, value reflect.Value) {
47 err := ctx.Err()

Callers

nothing calls this directly

Calls 4

WriteDataMethod · 0.95
WriteUint8Method · 0.80
uint8Function · 0.50
WriteInt8Method · 0.45

Tested by

no test coverage detected