Class: Buffer

Buffer()

The buffer interface

Constructor

new Buffer()

Source:

Methods

avail() → {number}

Returns the available no of bytes for writing.
Source:
Returns:
  • Type
    number

commit(len) → {number}

Commits n written bytes
Parameters:
Name Type Description
len number No of bytes
Source:
Returns:
  • Type
    number

request(len) → {number}

Requests n bytes for writing
Parameters:
Name Type Description
len number No of bytes
Source:
Returns:
  • Type
    number