MCPcopy Create free account
hub / github.com/LagrangeDev/LagrangeGo / WriteBool

Method WriteBool

utils/binary/builder.go:71–78  ·  view source on GitHub ↗
(v bool)

Source from the content-addressed store, hash-verified

69}
70
71func (b *Builder) WriteBool(v bool) *Builder {
72 if v {
73 b.WriteU8('1')
74 } else {
75 b.WriteU8('0')
76 }
77 return b
78}
79
80// WritePacketBytes prefix must not be empty
81func (b *Builder) WritePacketBytes(v []byte, prefix string, withPrefix bool) *Builder {

Callers 1

T106Function · 0.80

Calls 1

WriteU8Method · 0.95

Tested by

no test coverage detected