ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/efuns/read_buffer

HOME :: doc :: efuns :: read_buffer

     rrrreeeeaaaadddd____bbbbuuuuffffffffeeeerrrr((((3333))))         MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))          rrrreeeeaaaadddd____bbbbuuuuffffffffeeeerrrr((((3333))))

     NNNNAAAAMMMMEEEE
          read_buffer() - read from a file and return a buffer, or
          return part of a buffer as a string

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          string | buffer read_buffer( string | buffer src,
                                       int start,  int len );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          If `src' is a string (filename), then the filename will be
          read, starting at byte # `start', for `len' bytes, and
          returned as a buffer.  If neither argument is given, the
          entire file is read.

          If `src' is a buffer, then characters are read from the
          buffer beginning at byte # `start' in the buffer, and for
          `len' # of bytes, and returned as a string.

          Note that the maximum number of bytes you can read from a
          file and into a buffer is controlled via the 'maximum byte
          transfer' parameter in the runtime config file.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          write_buffer(3), allocate_buffer(3), bufferp(3),
          read_bytes(3), write_bytes(3)

     AAAAUUUUTTTTHHHHOOOORRRR
          Truilkan

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: read_buffer