用于组成字符串的简单文本缓冲区类。
用于组成字符串的 Buffer 类。这是作为一个 JavaScript 数组的简单包装实现的。
*... | args... | initial parts to write to the buffer |
获取此缓冲区内容的消息摘要。
String | algorithm | the algorithm to use, defaults to MD5 |
String | a Base16 encoded digest |
用此缓冲区中的每个内容部分调用函数 fn。
Function | fn | a function to apply to each buffer part |
包含此缓冲区当前包含的字符数的只读属性。
将所有参数追加到此缓冲区。
*... | args... | variable arguments to append to the buffer |
Buffer | this buffer object |
将所有参数附加到由回车/换行符序列终止的缓冲区。
*... | args... | variable arguments to append to the buffer |
Buffer | this buffer object |