pike.git / lib / modules / ADT.pmod / BitBuffer.pike

version» Context lines:

pike.git/lib/modules/ADT.pmod/BitBuffer.pike:96:    out_buffer &= pow2(bib-bits)-1;    bib-=bits;       return res;   }      //! Reads @[bytes] (or less) bytes from the buffer and returns as   //! string.   string read( void|int bytes )   { -  if( zero_type(bytes) ) +  if( undefinedp(bytes) )    bytes = _sizeof()/8;    else    bytes = min(bytes, _sizeof()/8);    String.Buffer buf = String.Buffer(bytes);    while(bytes--)    buf->putchar( get(8) );    return (string)buf;   }      protected int in_buffer, bob;