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

Method WriteBool

go/fory/buffer.go:184–189  ·  view source on GitHub ↗
(value bool)

Source from the content-addressed store, hash-verified

182}
183
184func (b *ByteBuffer) WriteBool(value bool) {
185 b.grow(1)
186 // Branchless: directly convert bool to byte via unsafe
187 b.data[b.writerIndex] = *(*byte)(unsafe.Pointer(&value))
188 b.writerIndex++
189}
190
191func (b *ByteBuffer) WriteByte(value byte) error {
192 b.grow(1)

Callers 12

testBufferFunction · 0.95
WriteDataMethod · 0.80
writeRemainingFieldMethod · 0.80
writeOptionFastFunction · 0.80
SerializeFunction · 0.80
writeMapStringBoolFunction · 0.80
RawBoolMethod · 0.80
writeFastMethod · 0.80
WriteBufferObjectMethod · 0.80
WriteTypedMethod · 0.80
WriteTypedMethod · 0.80

Calls 1

growMethod · 0.95