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

Method Flush

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

Flush flushes all of the buffered data to the underlying writer.

()

Source from the content-addressed store, hash-verified

181// Flush flushes all of the buffered
182// data to the underlying writer.
183func (mw *Writer) Flush() error { return mw.flush() }
184
185// Buffered returns the number bytes in the write buffer
186func (mw *Writer) Buffered() int { return len(mw.buf) - mw.wloc }

Callers 15

TestReadMapHeaderBytesFunction · 0.95
TestReadArrayHeaderBytesFunction · 0.95
TestReadBytesHeaderFunction · 0.95
TestReadNilBytesFunction · 0.95
TestReadFloat64BytesFunction · 0.95
TestReadFloat32BytesFunction · 0.95
TestReadBoolBytesFunction · 0.95
TestReadInt64BytesFunction · 0.95
TestReadUint64BytesFunction · 0.95
TestReadBytesBytesFunction · 0.95
TestReadZCBytesFunction · 0.95

Calls 1

flushMethod · 0.95

Tested by 15

TestReadMapHeaderBytesFunction · 0.76
TestReadArrayHeaderBytesFunction · 0.76
TestReadBytesHeaderFunction · 0.76
TestReadNilBytesFunction · 0.76
TestReadFloat64BytesFunction · 0.76
TestReadFloat32BytesFunction · 0.76
TestReadBoolBytesFunction · 0.76
TestReadInt64BytesFunction · 0.76
TestReadUint64BytesFunction · 0.76
TestReadBytesBytesFunction · 0.76
TestReadZCBytesFunction · 0.76