MCPcopy
hub / github.com/tinylib/msgp / WriteBool

Method WriteBool

msgp/write.go:486–491  ·  view source on GitHub ↗

WriteBool writes a bool to the writer

(b bool)

Source from the content-addressed store, hash-verified

484
485// WriteBool writes a bool to the writer
486func (mw *Writer) WriteBool(b bool) error {
487 if b {
488 return mw.push(mtrue)
489 }
490 return mw.push(mfalse)
491}
492
493// WriteString writes a messagepack string to the writer.
494// (This is NOT an implementation of io.StringWriter)

Callers 12

TestReadBoolBytesFunction · 0.95
BenchmarkSkipBytesFunction · 0.95
BenchmarkSkipFunction · 0.95
TestCopyNextFunction · 0.95
TestCopyJSONFunction · 0.95
BenchmarkCopyToJSONFunction · 0.95
TestReadArray_BoolFunction · 0.95
WriteIntfMethod · 0.95
BenchmarkUnmarshalAsJSONFunction · 0.95
TestAppendBoolFunction · 0.95

Calls 1

pushMethod · 0.95

Tested by 11

TestReadBoolBytesFunction · 0.76
BenchmarkSkipBytesFunction · 0.76
BenchmarkSkipFunction · 0.76
TestCopyNextFunction · 0.76
TestCopyJSONFunction · 0.76
BenchmarkCopyToJSONFunction · 0.76
TestReadArray_BoolFunction · 0.76
BenchmarkUnmarshalAsJSONFunction · 0.76
TestAppendBoolFunction · 0.76