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

Method WriteData

csharp/src/Fory/PrimitiveSerializers.cs:32–36  ·  view source on GitHub ↗
(WriteContext context, in bool value, bool hasGenerics)

Source from the content-addressed store, hash-verified

30 public override bool DefaultValue => false;
31
32 public override void WriteData(WriteContext context, in bool value, bool hasGenerics)
33 {
34 _ = hasGenerics;
35 context.Writer.WriteUInt8(value ? (byte)1 : (byte)0);
36 }
37
38 public override bool ReadData(ReadContext context)
39 {

Callers

nothing calls this directly

Calls 1

WriteUInt8Method · 0.80

Tested by

no test coverage detected