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

Method WriteNil

msgp/write.go:349–351  ·  view source on GitHub ↗

WriteNil writes a nil byte to the buffer

()

Source from the content-addressed store, hash-verified

347
348// WriteNil writes a nil byte to the buffer
349func (mw *Writer) WriteNil() error {
350 return mw.push(mnil)
351}
352
353// WriteFloat writes a float to the writer as either float64
354// or float32 when it represents the exact same value

Callers 15

TestReadNilBytesFunction · 0.95
TestReadNilFunction · 0.95
TestWriteNilFunction · 0.95
WriteIntfMethod · 0.95
WriteArrayFunction · 0.80
WriteMapFunction · 0.80
WriteMapSortedFunction · 0.80
EncodeMsgMethod · 0.80
EncodeMsgMethod · 0.80
EncodeMsgMethod · 0.80
EncodeMsgMethod · 0.80

Calls 1

pushMethod · 0.95

Tested by 4

TestReadNilBytesFunction · 0.76
TestReadNilFunction · 0.76
TestWriteNilFunction · 0.76