MCPcopy Create free account
hub / github.com/egonelbre/exp / WriteBit

Method WriteBit

bit/bit.go:76–78  ·  view source on GitHub ↗

WriteBit writes the lowest bit in x to the underlying writer

(x int)

Source from the content-addressed store, hash-verified

74
75// WriteBit writes the lowest bit in x to the underlying writer
76func (w *Writer) WriteBit(x int) {
77 w.WriteBits(uint64(x&1), 1)
78}
79
80// WriteBool writes a bool the underlying writer depending on x
81func (w *Writer) WriteBool(x bool) {

Callers 3

TestWriteReadRandomBitFunction · 0.95
WriteIntFunction · 0.80
WriteUintFunction · 0.80

Implementers 1

writerhtmlrender/dom/html.go

Calls 1

WriteBitsMethod · 0.95

Tested by 1

TestWriteReadRandomBitFunction · 0.76