Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
api:buffer:zh [2023/10/16 10:34]
hfsr [实例方法]
api:buffer:zh [2023/10/16 11:17]
hfsr [静态方法]
Line 11: Line 11:
 - `buffer.new([mode:​ string], stream: table)` - `buffer.new([mode:​ string], stream: table)`
  
-  ​用读写模式(`mode`)来修饰传入的流(`stream`),以创建一个带缓冲IO流。模式(`mode`)可以为只读(r或`nil`)、读写(rw)或仅写入(w)。请查看`stream`对象所需的流[[api:​buffer:​zh#​实例方法|实例方法]]有关内容。+  ​传入的流(`stream`)封装上读写模式(`mode`),以创建一个带缓冲IO流。模式(`mode`)可以为只读(r或`nil`)、读写(rw)或仅写入(w)。请查看`stream`对象所需的流[[api:​buffer:​zh#​实例方法|实例方法]]有关内容。
  
 实例方法 实例方法