MCPcopy Create free account
hub / github.com/coreutils/coreutils / mbbuf_avail

Function mbbuf_avail

gl/lib/mbbuf.h:55–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53} mbbuf_t;
54
55MBBUF_INLINE idx_t
56mbbuf_avail (mbbuf_t const *mbbuf)
57{
58 return mbbuf->length - mbbuf->offset;
59}
60
61/* Initialize MBBUF with an allocated BUFFER of SIZE bytes and a file stream
62 FP open for reading. SIZE must be greater than or equal to MCEL_LEN_MAX.

Callers 3

mbbuf_topupFunction · 0.85
mbbuf_fillFunction · 0.85
mbbuf_advanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected