alloc static method

Buffer alloc(
  1. int size, [
  2. dynamic fill,
  3. String encoding
])

Allocates a new Buffer of size bytes.

If fill is undefined, the Buffer will be zero-filled.

Implementation

external static Buffer alloc(int size, [fill, String encoding]);