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

version» Context lines:

pike.git/lib/modules/ADT.pmod/module.pmod:17:   {    inherit Error.Generic;    constant ADT_struct = 1;   }      //! String buffer with the possibility to read and write data   //! as they would be formatted in structs.   class struct {    inherit Stdio.Buffer;    -  __deprecated__ string `buffer() -  { -  return contents(); -  } -  -  __deprecated__ int `index() -  { -  return 0; -  } -  +     //! Create a new buffer, optionally initialized with the    //! value @[s].    void create(void|string(0..255) s)    {    if( s && strlen(s) )    ::create(s);    else    ::create();    set_error_mode(structError);    }