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

Function AppendBool

msgp/write_bytes.go:235–240  ·  view source on GitHub ↗

AppendBool appends a bool to the slice

(b []byte, t bool)

Source from the content-addressed store, hash-verified

233
234// AppendBool appends a bool to the slice
235func AppendBool(b []byte, t bool) []byte {
236 if t {
237 return append(b, mtrue)
238 }
239 return append(b, mfalse)
240}
241
242// AppendString appends a string as a MessagePack 'str' to the slice
243func AppendString(b []byte, s string) []byte {

Callers 4

AppendIntfFunction · 0.85
TestAppendBoolFunction · 0.85
BenchmarkAppendBoolFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestAppendBoolFunction · 0.68
BenchmarkAppendBoolFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…