pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:68:    *! The class can also be used to directly read from and write to    *! filedescriptors if so desired. This eliminates at least one memory    *! copy.    *!    *! @note    *! The "avoid copy" part means that a Buffer will never shrink    *! unless you call the @[trim] function.    *!    */   PIKECLASS Buffer +  /* This is needed to get consisten behavior in case this +  * buffer is a sub-buffer, in which case the source +  * buffer needs to be unlocked as soon as possible. +  */ +  program_flags PROGRAM_DESTRUCT_IMMEDIATE;   {   #if PRECOMPILE_API_VERSION > 5    PIKEVAR int b.num_malloc;    PIKEVAR int b.num_move;   #endif       CVAR Buffer b;       EXTRA    {