src/core/system-file.h
changeset 122 6b8f1eda5c57
parent 111 ad64f88919b5
child 131 f4fb87e77034
equal deleted inserted replaced
121:f8bc1a370b82 122:6b8f1eda5c57
    51      *
    51      *
    52      * Open a file for writing. If the file does not
    52      * Open a file for writing. If the file does not
    53      * exist, it is created. If it exists, it is 
    53      * exist, it is created. If it exists, it is 
    54      * emptied first.
    54      * emptied first.
    55      */
    55      */
    56     void open (char const *filename);
    56     void Open (char const *filename);
    57     /**
    57     /**
    58      * \param buffer data to write
    58      * \param buffer data to write
    59      * \param size size of data to write
    59      * \param size size of data to write
    60      *
    60      *
    61      * Write data in file on disk. This method cannot fail:
    61      * Write data in file on disk. This method cannot fail:
    65      * it is not possible to rely on the data being
    65      * it is not possible to rely on the data being
    66      * effectively written to disk after this method returns.
    66      * effectively written to disk after this method returns.
    67      * To make sure the data is written to disk, destroy 
    67      * To make sure the data is written to disk, destroy 
    68      * this object.
    68      * this object.
    69      */
    69      */
    70     void write (uint8_t const*buffer, uint32_t size);
    70     void Write (uint8_t const*buffer, uint32_t size);
    71 private:
    71 private:
    72     SystemFilePrivate *m_priv;
    72     SystemFilePrivate *m_priv;
    73 };
    73 };
    74 
    74 
    75 }; //namespace ns3
    75 }; //namespace ns3