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

Function AppendNil

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

AppendNil appends a 'nil' byte to the slice

(b []byte)

Source from the content-addressed store, hash-verified

61
62// AppendNil appends a 'nil' byte to the slice
63func AppendNil(b []byte) []byte { return append(b, mnil) }
64
65// AppendFloat appends a float to the slice as either float64
66// or float32 when it represents the exact same value

Callers 15

MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92
MarshalMsgMethod · 0.92

Calls

no outgoing calls

Tested by 5

TestAllowNilZeroCopyFunction · 0.74
BenchmarkReadNilFunction · 0.68
TestAppendNilFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…