• buffer
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Inherited Attributes
Attributes inherited from: Object
hash, string
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.

  • 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.

  • 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.

  • string

    the string

Inherited Methods
Methods inherited from: Object