Lines Matching refs:len
35 virtual const unsigned char *readFully( void *buf, size_t len) = 0;
37 virtual int writeFully(const void* buf, size_t len) = 0;
44 unsigned char *alloc(size_t len) {
46 if (m_buf && len > m_free) {
53 if (!m_buf || len > m_bufsize) {
54 int allocLen = m_bufsize < len ? len : m_bufsize;
66 m_free -= len;
81 const unsigned char *readback(void *buf, size_t len) {
83 return readFully(buf, len);