# Module: vertx-js/buffer

## vertx-js/buffer

Source:
  - buffer.js, line 3

### Classes

Buffer

### Methods

#### <static> Buffer.buffer(string, enc) → {Buffer}

  Create a new buffer from a string and using the specified encoding. The string will be encoded into the buffer using the specified encoding.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `string` | string | the string
  `enc` | string |

  Source:
    - buffer.js, line 519

  ##### Returns:

  the buffer
  Type
    Buffer