• buffer
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
buffershared Buffer buffer()

Create a new, empty buffer.

buffershared Buffer buffer(Integer initialSizeHint)

Create a new buffer given the initial size hint.

If you know the buffer will require a certain size, providing the hint can prevent unnecessary re-allocations as the buffer is written to and resized.

Parameters:
  • initialSizeHint

    the hint, in bytes

buffershared Buffer buffer(String string)

Create a new buffer from a string. The string will be UTF-8 encoded into the buffer.

Parameters:
  • string

    the string

buffershared Buffer buffer(String string, String enc)

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:
  • string

    the string

Inherited Methods
Methods inherited from: Object
equals