Lines Matching refs:len
33 virtual size_t idealAllocSize(size_t len) { in idealAllocSize() argument
34 return m_bufsize < len ? len : m_bufsize; in idealAllocSize()
39 virtual const unsigned char *readFully( void *buf, size_t len) = 0;
40 virtual const unsigned char *commitBufferAndReadFully(size_t size, void *buf, size_t len) = 0;
42 virtual int writeFully(const void* buf, size_t len) = 0;
49 virtual unsigned char *alloc(size_t len) { in alloc() argument
51 if (m_iostreamBuf && len > m_free) { in alloc()
58 if (!m_iostreamBuf || len > m_bufsize) { in alloc()
59 int allocLen = this->idealAllocSize(len); in alloc()
71 m_free -= len; in alloc()
86 const unsigned char *readback(void *buf, size_t len) { in readback() argument
91 return commitBufferAndReadFully(size, buf, len); in readback()
93 return readFully(buf, len); in readback()