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

version» Context lines:

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